---
title: "根据错误编号取得错误描述"
author: "mrjeye"
date: "2012-05-17T14:54:48Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2012-05-17T14:54:48Z"
id: 1533706
url: "https://mrjeye.iteye.com/blog/1533706"
---

```java

NSError *error = [nserror errorwithdomain:nsosstatuserrordomain
                          code:error_code
                          userinfo:nil];
NSLog(@"Error: %@", [error description]);


```