Package org.robovm.apple.corefoundation
Class OSStatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.robovm.apple.corefoundation.OSStatusException
- All Implemented Interfaces:
Serializable
public class OSStatusException extends Exception
OSStatusException extends from Exception and wraps
OSStatus. It is used throughout the Cocoa frameworks on methods that
return OSStatus.
Use getStatus() to get the OSStatus instance that was used
to instantiate this exception.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description OSStatusException(OSStatus status) -
Method Summary
Modifier and Type Method Description StringgetMessage()OSStatusgetStatus()static booleanthrowIfNecessary(OSStatus status)Throws anOSStatusException(org.robovm.apple.corefoundation.OSStatus)if the supplied status isn'tnulland doesn't equalOSStatus.NO_ERR.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OSStatusException
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getStatus
-
throwIfNecessary
Throws anOSStatusException(org.robovm.apple.corefoundation.OSStatus)if the supplied status isn'tnulland doesn't equalOSStatus.NO_ERR.- Parameters:
status-- Returns:
- true if the status is
OSStatus.NO_ERR. - Throws:
OSStatusException
-