Classes

The following classes are available globally.

  • An error that can be thrown. Encapsulates the type of error, the description, and any additional metadata.

    See more

    Declaration

    Swift

    open class Exception : Error, CustomStringConvertible
  • An exception thrown due to an issue with program input or output.

    See more

    Declaration

    Swift

    open class IOException : Exception
  • An exception thrown when a nil value of any type is accessed. Catch this exception when you only care about a nil value and not what type the value should have been.

    Declaration

    Swift

    open class AnyNilException : Exception
  • An exception thrown when an unexpected nil value of a specific type is accessed. Catch this exception when you care about the specific type a nil value should have been.

    See more

    Declaration

    Swift

    open class NilException<T> : AnyNilException