Mac Guides | Samples

MonoMac.Foundation.NSError Class

Encapsulates an error.

See Also: NSError

Syntax

[MonoMac.Foundation.Register("NSError", true)]
public class NSError : NSObject

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.Foundation.NSError are listed below.

See Also: NSObject

Public Constructors

Do not use the Default Constructor unless you are dealing with a low-level API that will initialize the object for you.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes when the derived class has an [Export] constructor.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
static
CocoaErrorDomainNSString. Represents the value associated with the constant NSCocoaErrorDomain
[read-only]
CodeInt32.
[read-only]
DomainString.
[read-only]
static
FilePathErrorKeyNSString. Represents the value associated with the constant NSFilePathErrorKey
[read-only]
static
HelpAnchorErrorKeyNSString. Represents the value associated with the constant NSHelpAnchorErrorKey
[read-only]
LocalizedDescriptionString.
[read-only]
static
LocalizedDescriptionKeyNSString. Represents the value associated with the constant NSLocalizedDescriptionKey
[read-only]
static
LocalizedFailureReasonErrorKeyNSString. Represents the value associated with the constant NSLocalizedFailureReasonErrorKey
[read-only]
static
LocalizedRecoveryOptionsErrorKeyNSString. Represents the value associated with the constant NSLocalizedRecoveryOptionsErrorKey
[read-only]
static
LocalizedRecoverySuggestionErrorKeyNSString. Represents the value associated with the constant NSLocalizedRecoverySuggestionErrorKey
[read-only]
static
MachErrorDomainNSString. Represents the value associated with the constant NSMachErrorDomain
[read-only]
static
OsStatusErrorDomainNSString. Represents the value associated with the constant NSOSStatusErrorDomain
[read-only]
static
PosixErrorDomainNSString. Represents the value associated with the constant NSPOSIXErrorDomain
[read-only]
static
RecoveryAttempterErrorKeyNSString. Represents the value associated with the constant NSRecoveryAttempterErrorKey
[read-only]
static
StringEncodingErrorKeyNSString. Represents the value associated with the constant NSStringEncodingErrorKey
[read-only]
static
UnderlyingErrorKeyNSString. Represents the value associated with the constant NSUnderlyingErrorKey
[read-only]
static
UrlErrorKeyNSString. Represents the value associated with the constant NSURLErrorKey
[read-only]
UserInfoNSDictionary.

Public Methods

static
FromDomain(NSString, Int32) : NSError
static
FromDomain(NSString, Int32, NSDictionary) : NSError
override
ToString() : String
Returns a string representation of the value of the current instance.

Protected Methods

override
Dispose(Boolean)
Releases the resourced used by the NSError object.