de.kapsi.util
Class NativeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byde.kapsi.util.NativeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
OSAException

public class NativeException
extends java.lang.RuntimeException

For a complete list of error codes see: CoreServices.framework -> CarbonCore.framework -> Headers -> MacError.h

See Also:
Serialized Form

Field Summary
static int ERROR_IN_PARAMETER_LIST
           
static int FILE_NOT_FOUND
           
static int NOT_ENOUGH_MEMORY
           
 
Constructor Summary
NativeException(int errorCode)
           
NativeException(java.lang.String msg, int errorCode)
           
 
Method Summary
protected static java.lang.String createMessage(int errorCode)
           
 int getErrorCode()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FILE_NOT_FOUND

public static final int FILE_NOT_FOUND
See Also:
Constant Field Values

ERROR_IN_PARAMETER_LIST

public static final int ERROR_IN_PARAMETER_LIST
See Also:
Constant Field Values

NOT_ENOUGH_MEMORY

public static final int NOT_ENOUGH_MEMORY
See Also:
Constant Field Values
Constructor Detail

NativeException

public NativeException(int errorCode)

NativeException

public NativeException(java.lang.String msg,
                       int errorCode)
Method Detail

getErrorCode

public int getErrorCode()

createMessage

protected static java.lang.String createMessage(int errorCode)