Class NSErrorException

  • All Implemented Interfaces:
    Serializable

    public class NSErrorException
    extends Exception
    Defines an Exception which reports an NSError.
    Author:
    Lyubomir Marinov
    See Also:
    Serialized Form
    • Constructor Detail

      • NSErrorException

        public NSErrorException​(long errorPtr)
        Initializes a new NSErrorException instance which is to report a specific Objective-C NSError.
        Parameters:
        errorPtr - the pointer to the Objective-C NSError object to be reported by the new instance
      • NSErrorException

        public NSErrorException​(NSError error)
        Initializes a new NSErrorException instance which is to report a specific NSError.
        Parameters:
        error - the NSError to be reported by the new instance
    • Method Detail

      • getError

        public NSError getError()
        Gets the NSError reported by this instance.
        Returns:
        the NSError reported by this instance