<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSExceptionName",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@T@NSExceptionName"
  },
  "title" : "NSExceptionName"
}
-->

# NSExceptionName

```
struct NSExceptionName
```

## Topics

### Type Properties

[`characterConversionException`](/documentation/Foundation/NSExceptionName/characterConversionException)

`NSString` raises an `NSCharacterConversionException` if a string cannot be represented in a file-system or string encoding.

[`decimalNumberDivideByZeroException`](/documentation/Foundation/NSExceptionName/decimalNumberDivideByZeroException)

The exception raised on divide by zero.

[`decimalNumberExactnessException`](/documentation/Foundation/NSExceptionName/decimalNumberExactnessException)

The exception raised if there is an exactness error.

[`decimalNumberOverflowException`](/documentation/Foundation/NSExceptionName/decimalNumberOverflowException)

The exception raised on overflow.

[`decimalNumberUnderflowException`](/documentation/Foundation/NSExceptionName/decimalNumberUnderflowException)

The exception raised on underflow.

[`destinationInvalidException`](/documentation/Foundation/NSExceptionName/destinationInvalidException)

Name of an exception that occurs when an internal assertion fails and implies an unexpected condition within the distributed objects.

[`fileHandleOperationException`](/documentation/Foundation/NSExceptionName/fileHandleOperationException)

Raised by `NSFileHandle` if attempts to determine file-handle type fail or if attempts to read from a file or channel fail.

[`genericException`](/documentation/Foundation/NSExceptionName/genericException)

A generic name for an exception.

[`internalInconsistencyException`](/documentation/Foundation/NSExceptionName/internalInconsistencyException)

Name of an exception that occurs when an internal assertion fails and implies an unexpected condition within the called code.

[`invalidArchiveOperationException`](/documentation/Foundation/NSExceptionName/invalidArchiveOperationException)

The name of the exception raised by `NSKeyedArchiver` if there is a problem creating an archive.

[`invalidArgumentException`](/documentation/Foundation/NSExceptionName/invalidArgumentException)

Name of an exception that occurs when you pass an invalid argument to a method, such as a `nil` pointer where a non-`nil` object is required.

[`invalidReceivePortException`](/documentation/Foundation/NSExceptionName/invalidReceivePortException)

Name of an exception that occurs when the receive port of an `NSConnection` has become invalid.

[`invalidSendPortException`](/documentation/Foundation/NSExceptionName/invalidSendPortException)

Name of an exception that occurs when the send port of an `NSConnection` has become invalid.

[`invalidUnarchiveOperationException`](/documentation/Foundation/NSExceptionName/invalidUnarchiveOperationException)

The name of the exception raised by `NSKeyedArchiver` if there is a problem extracting an archive.

[`invocationOperationCancelledException`](/documentation/Foundation/NSExceptionName/invocationOperationCancelledException)

The name of the exception raised if the [`result`](/documentation/Foundation/NSInvocationOperation/result) method is called after the operation was cancelled.

[`invocationOperationVoidResultException`](/documentation/Foundation/NSExceptionName/invocationOperationVoidResultException)

The name of the exception raised if the [`result`](/documentation/Foundation/NSInvocationOperation/result) method is called for an invocation method with a `void` return type.

[`mallocException`](/documentation/Foundation/NSExceptionName/mallocException)

Obsolete; not currently used.

[`objectInaccessibleException`](/documentation/Foundation/NSExceptionName/objectInaccessibleException)

Name of an exception that occurs when a remote object is accessed from a thread that should not access it.

[`objectNotAvailableException`](/documentation/Foundation/NSExceptionName/objectNotAvailableException)

Name of an exception that occurs when the remote side of the `NSConnection` refused to send the message to the object because the object has never been vended.

[`oldStyleException`](/documentation/Foundation/NSExceptionName/oldStyleException)

No longer used.

[`parseErrorException`](/documentation/Foundation/NSExceptionName/parseErrorException)

`NSString` raises an `NSParseErrorException` if a string cannot be parsed as a property list.

[`portReceiveException`](/documentation/Foundation/NSExceptionName/portReceiveException)

Generic error occurred on receive.

[`portSendException`](/documentation/Foundation/NSExceptionName/portSendException)

Generic error occurred on send.

[`portTimeoutException`](/documentation/Foundation/NSExceptionName/portTimeoutException)

Name of an exception that occurs when a timeout set on a port expires during a send or receive operation.

[`rangeException`](/documentation/Foundation/NSExceptionName/rangeException)

Name of an exception that occurs when attempting to access outside the bounds of some data, such as beyond the end of a string.

[`undefinedKeyException`](/documentation/Foundation/NSExceptionName/undefinedKeyException)

Raised when a key value coding operation fails.

[`inconsistentArchiveException`](/documentation/Foundation/NSExceptionName/inconsistentArchiveException)

The name of an exception raised by [`NSArchiver`](/documentation/Foundation/NSArchiver) if there are problems initializing or encoding.

[`NSPPDIncludeNotFoundException`](/documentation/Foundation/NSExceptionName/NSPPDIncludeNotFoundException)

[`NSPPDIncludeStackOverflowException`](/documentation/Foundation/NSExceptionName/NSPPDIncludeStackOverflowException)

[`NSPPDIncludeStackUnderflowException`](/documentation/Foundation/NSExceptionName/NSPPDIncludeStackUnderflowException)

[`NSPPDParseException`](/documentation/Foundation/NSExceptionName/NSPPDParseException)

[`NSRTFPropertyStackOverflowException`](/documentation/Foundation/NSExceptionName/NSRTFPropertyStackOverflowException)

[`NSTIFFException`](/documentation/Foundation/NSExceptionName/NSTIFFException)

[`abortModalException`](/documentation/Foundation/NSExceptionName/abortModalException)

[`abortPrintingException`](/documentation/Foundation/NSExceptionName/abortPrintingException)

[`accessibilityException`](/documentation/Foundation/NSExceptionName/accessibilityException)

[`appKitIgnoredException`](/documentation/Foundation/NSExceptionName/appKitIgnoredException)

[`appKitVirtualMemoryException`](/documentation/Foundation/NSExceptionName/appKitVirtualMemoryException)

[`badBitmapParametersException`](/documentation/Foundation/NSExceptionName/badBitmapParametersException)

[`badComparisonException`](/documentation/Foundation/NSExceptionName/badComparisonException)

[`badRTFColorTableException`](/documentation/Foundation/NSExceptionName/badRTFColorTableException)

[`badRTFDirectiveException`](/documentation/Foundation/NSExceptionName/badRTFDirectiveException)

[`badRTFFontTableException`](/documentation/Foundation/NSExceptionName/badRTFFontTableException)

[`badRTFStyleSheetException`](/documentation/Foundation/NSExceptionName/badRTFStyleSheetException)

[`browserIllegalDelegateException`](/documentation/Foundation/NSExceptionName/browserIllegalDelegateException)

[`colorListIOException`](/documentation/Foundation/NSExceptionName/colorListIOException)

[`colorListNotEditableException`](/documentation/Foundation/NSExceptionName/colorListNotEditableException)

[`draggingException`](/documentation/Foundation/NSExceptionName/draggingException)

[`fontUnavailableException`](/documentation/Foundation/NSExceptionName/fontUnavailableException)

[`illegalSelectorException`](/documentation/Foundation/NSExceptionName/illegalSelectorException)

[`imageCacheException`](/documentation/Foundation/NSExceptionName/imageCacheException)

[`nibLoadingException`](/documentation/Foundation/NSExceptionName/nibLoadingException)

[`pasteboardCommunicationException`](/documentation/Foundation/NSExceptionName/pasteboardCommunicationException)

[`printOperationExistsException`](/documentation/Foundation/NSExceptionName/printOperationExistsException)

The name of an exception raised when there is already a print operation in process.

[`printPackageException`](/documentation/Foundation/NSExceptionName/printPackageException)

[`printingCommunicationException`](/documentation/Foundation/NSExceptionName/printingCommunicationException)

[`textLineTooLongException`](/documentation/Foundation/NSExceptionName/textLineTooLongException)

Exception generated if a line is too long in a `NSText` object.

[`textNoSelectionException`](/documentation/Foundation/NSExceptionName/textNoSelectionException)

[`textReadException`](/documentation/Foundation/NSExceptionName/textReadException)

[`textWriteException`](/documentation/Foundation/NSExceptionName/textWriteException)

[`typedStreamVersionException`](/documentation/Foundation/NSExceptionName/typedStreamVersionException)

[`windowServerCommunicationException`](/documentation/Foundation/NSExceptionName/windowServerCommunicationException)

[`wordTablesReadException`](/documentation/Foundation/NSExceptionName/wordTablesReadException)

[`wordTablesWriteException`](/documentation/Foundation/NSExceptionName/wordTablesWriteException)

  <doc://com.apple.documentation/documentation/UIKit/UIViewController/hierarchyInconsistencyException>

  <doc://com.apple.documentation/documentation/UIKit/UIApplication/invalidInterfaceOrientationException>



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)