org.openanzo.common.exceptions
Class AnzoRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.openanzo.common.exceptions.AnzoRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TransactionGraphRuntimeException

public class AnzoRuntimeException
extends java.lang.RuntimeException

Runtime exception that encapsulates a AnzoException

Author:
Matthew Roy ( mroy@cambridgesemantics.com )
See Also:
Serialized Form

Constructor Summary
AnzoRuntimeException(AnzoException anzoException)
          Create a RuntimeException caused by an AnzoException
AnzoRuntimeException(int errorCode, int errorSubCode, java.lang.String... arguments)
          Create a RuntimeException based on given error codes and arguments
AnzoRuntimeException(int errorCode, int errorSubCode, java.lang.Throwable cause, java.lang.String... arguments)
          Create a RuntimeException based on given error codes,throwable, and arguments
 
Method Summary
 int getErrorCode()
          Get error's major code
 int getErrorSubCode()
          Get error's minor code
 java.lang.String getMessage()
          Get the exception's error message
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnzoRuntimeException

public AnzoRuntimeException(AnzoException anzoException)
Create a RuntimeException caused by an AnzoException

Parameters:
anzoException - Cause of exception

AnzoRuntimeException

public AnzoRuntimeException(int errorCode,
                            int errorSubCode,
                            java.lang.String... arguments)
Create a RuntimeException based on given error codes and arguments

Parameters:
errorCode - Major error code of exception
errorSubCode - Minor error code of exception
arguments - Arguments to exception

AnzoRuntimeException

public AnzoRuntimeException(int errorCode,
                            int errorSubCode,
                            java.lang.Throwable cause,
                            java.lang.String... arguments)
Create a RuntimeException based on given error codes,throwable, and arguments

Parameters:
errorCode - Major error code of exception
errorSubCode - Minor error code of exception
cause - Root cause of exception
arguments - Arguments to exception
Method Detail

getMessage

public java.lang.String getMessage()
Get the exception's error message

Overrides:
getMessage in class java.lang.Throwable
Returns:
exceptions error message

getErrorCode

public int getErrorCode()
Get error's major code

Returns:
error's major code

getErrorSubCode

public int getErrorSubCode()
Get error's minor code

Returns:
error's minor code


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.