<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/nsstring-handling-exception-names",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "NSString Handling Exception Names"
}
-->

# NSString Handling Exception Names

These constants define the names of exceptions raised if `NSString` cannot represent a string in a given encoding, or parse a string as a property list.

## Topics

### Constants

[`static let characterConversionException: NSExceptionName`](/documentation/Foundation/NSExceptionName/characterConversionException)

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

[`static let parseErrorException: NSExceptionName`](/documentation/Foundation/NSExceptionName/parseErrorException)

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



---

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)