org.nhindirect.stagent
Class NHINDException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.nhindirect.stagent.NHINDException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AgentException, CryptographicException, MimeException, TrustException

public class NHINDException
extends java.lang.RuntimeException

Generic exceptions thrown by the DefaultNHINDAgent

Author:
Greg Meyer, Umesh Madan
See Also:
Serialized Form

Constructor Summary
NHINDException()
          Constructs an empty exception.
NHINDException(java.lang.Object error)
          Constructs an exception with a generic error.
NHINDException(java.lang.Object error, java.lang.Exception innerException)
          Constructs an exception with a generic error and the exception that caused the error.
NHINDException(java.lang.Object error, java.lang.String message)
          Constructs an exception with a message and a generic error.
NHINDException(java.lang.Object error, java.lang.String message, java.lang.Exception innerException)
          Constructs an exception with a generic error, a message, and the exception that caused the error.
NHINDException(java.lang.String message)
          Constructs an exception with a message.
NHINDException(java.lang.String message, java.lang.Exception innerException)
          Constructs an exception with a message and and the exception that caused the error.
 
Method Summary
 java.lang.Object getError()
          Gets the generic exception error.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NHINDException

public NHINDException()
Constructs an empty exception.


NHINDException

public NHINDException(java.lang.Object error)
Constructs an exception with a generic error.

Parameters:
error - The generic exception error.

NHINDException

public NHINDException(java.lang.String message)
Constructs an exception with a message.

Parameters:
message - The exception message.

NHINDException

public NHINDException(java.lang.Object error,
                      java.lang.String message)
Constructs an exception with a message and a generic error.

Parameters:
error - The generic exception error.
msg - The exception message.

NHINDException

public NHINDException(java.lang.String message,
                      java.lang.Exception innerException)
Constructs an exception with a message and and the exception that caused the error.

Parameters:
message - The exception message.
innerException - The exception that caused the error.

NHINDException

public NHINDException(java.lang.Object error,
                      java.lang.Exception innerException)
Constructs an exception with a generic error and the exception that caused the error.

Parameters:
error - The generic exception error.
innerException - The exception that caused the error.

NHINDException

public NHINDException(java.lang.Object error,
                      java.lang.String message,
                      java.lang.Exception innerException)
Constructs an exception with a generic error, a message, and the exception that caused the error.

Parameters:
error - The generic exception error.
message - The exception message.
innerException - The exception that caused the error.
Method Detail

getError

public java.lang.Object getError()
Gets the generic exception error.

Returns:
The generic exception error.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable


Copyright © 2010-2011 HNIN Direct. All Rights Reserved.