com.rhi.architecture.batch
Class ApplicationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.commons.lang.exception.NestableException
              extended bycom.rhi.architecture.batch.ApplicationException
All Implemented Interfaces:
org.apache.commons.lang.exception.Nestable, java.io.Serializable

public class ApplicationException
extends org.apache.commons.lang.exception.NestableException

ApplicationException Class

Since:
1.0
Author:
Pete McKinstry
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.commons.lang.exception.NestableException
delegate
 
Constructor Summary
ApplicationException()
          Default Constructor
ApplicationException(java.lang.String msg)
          Constructor
ApplicationException(java.lang.String msg, int code)
          Constructor
ApplicationException(java.lang.String msg, java.lang.Throwable cause)
          Constructor
ApplicationException(java.lang.String msg, java.lang.Throwable cause, int code)
          Constructor
ApplicationException(java.lang.Throwable cause)
          Constructor
ApplicationException(java.lang.Throwable cause, int code)
          Constructor
 
Method Summary
 int getExitCode()
          get returnCode
 void setExitCode(int exitCode)
          set returnCode
 
Methods inherited from class org.apache.commons.lang.exception.NestableException
getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationException

public ApplicationException()
Default Constructor


ApplicationException

public ApplicationException(java.lang.String msg)
Constructor

Parameters:
msg - - the exception msg.

ApplicationException

public ApplicationException(java.lang.String msg,
                            int code)
Constructor

Parameters:
msg - - the exception msg.
code - - the exit code

ApplicationException

public ApplicationException(java.lang.Throwable cause)
Constructor

Parameters:
cause - -the root exception causing the app exception.

ApplicationException

public ApplicationException(java.lang.Throwable cause,
                            int code)
Constructor

Parameters:
cause - -the root exception causing the app exception.
code - - the exit code

ApplicationException

public ApplicationException(java.lang.String msg,
                            java.lang.Throwable cause)
Constructor

Parameters:
msg - the reason for the exception
cause - - the root cause exception.

ApplicationException

public ApplicationException(java.lang.String msg,
                            java.lang.Throwable cause,
                            int code)
Constructor

Parameters:
msg - the reason for the exception
code - - the exit code.
cause - - the root exception
Method Detail

getExitCode

public int getExitCode()
get returnCode

Returns:
exit code that should be returned from the application due to this exception.

setExitCode

public void setExitCode(int exitCode)
set returnCode

Parameters:
exitCode -


Copyright © 2002-2004 Robert Half International. All Rights Reserved.