public class NSError extends NSObject implements NSSecureCoding
Modifier and Type | Class and Description |
---|---|
static class |
NSError.Domain
The error domains.
|
static class |
NSError.ErrorCode
Different types of error codes.
|
static class |
NSError.Key
Keys of the user info dictionary.
|
Constructor and Description |
---|
NSError(String NSErrorDomain,
int code,
Map<String,Object> dict)
Constructs an NSError object with the specified error domain and code
with the given userInfo dictionary.
|
Modifier and Type | Method and Description |
---|---|
int |
code()
Returns the error code of this NSError object.
|
String |
domain()
Returns the error domain of this NSError object.
|
static NSError |
errorWithDomain(String NSErrorDomain,
int code,
Map<String,Object> dict)
Constructs and returns an NSError object for the specified error domain
and code.
|
String |
localizedDescription()
Returns the localized description of this NSError.
|
String |
toString() |
Map<String,Object> |
userInfo()
Returns the user info dictionary of this NSError object.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
supportsSecureCoding
public NSError(String NSErrorDomain, int code, Map<String,Object> dict)
NSErrorDomain
- The error domain of the NSError.code
- The error code of the new NSError.dict
- The userInfo dictionary for the NSError.public static NSError errorWithDomain(String NSErrorDomain, int code, Map<String,Object> dict)
NSErrorDomain
- The error domain of the NSError.code
- The error code of the new NSError.dict
- The userInfo dictionary for the NSError.public String domain()
public int code()
public Map<String,Object> userInfo()
public String localizedDescription()
Copyright © 2020. All rights reserved.