# PRESTOerror Class

    public class PRESTOerror : NSObject, CustomNSError

Error Interface ‘PRESTOerror’ is a generic interface that represents all error types thrown within the SDK. This class provides a unified way to handle, classify, and propagate errors encountered during SDK operations, ensuring that any error, regardless of its origin or context, can be managed consistently by client applications. Use this class to catch, inspect, and respond to SDK-specific failures, facilitating robust error handling across your codebase.

### Public

- `severity`

  Represents the severity level of an error, indicating how critical the error is and what kind of action may be needed.

  #### Declaration

  Swift

      public let severity: ErrorSeverity

- `category`

  `ErrorCategory` defines a set of categories representing the broad classification of errors within the SDK.

  #### Declaration

  Swift

      public let category: ErrorCategory

- `type`

  Enumerates all possible error types that may occur within the SDK, including licensing, network, DRM, storage, playback, and other system-level errors.

  #### Declaration

  Swift

      public let type: ErrorType

- `message`

  A human-readable description of the error.

  #### Declaration

  Swift

      public fileprivate(set) var message: String { get }

- `data`

  Optional additional information about the error, represented as key-value pairs.

  #### Declaration

  Swift

      public fileprivate(set) var data: [String : String] { get }

- `parentError`

  The underlying error that caused this error, if any.

  #### Declaration

  Swift

      public fileprivate(set) var parentError: Error? { get }