Class NSErrorException

  • All Implemented Interfaces:

    public class NSErrorException
    extends java.lang.Exception
    NSErrorException extends from Exception and wraps NSError. It is used throughout the Cocoa frameworks on methods that return pointers to NSError. Use getError() to get the NSError instance that was used to instantiate this exception.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      NSError getError()  
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NSErrorException

        public NSErrorException​(NSError error)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        getMessage in class java.lang.Throwable
      • getError

        public NSError getError()