uk.org.ogsadai.exception
Class InternalFaultException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--uk.org.ogsadai.exception.InternalFaultException
All Implemented Interfaces:
DAIExceptionInformation, java.io.Serializable

public class InternalFaultException
extends java.lang.Exception
implements DAIExceptionInformation

Exception wrapping server-side OGSA-DAI problems which are destined for clients.

This can be viewed as equivalent to InternalFaultType at the service level but is for cases where client-bound exceptions are communicated by another means (for example by a servlet). This should not be wrapped in any other OGSA-DAI exception.

Associated with error ID: uk.org.ogsadai.INTERNAL_FAULT.

Author:
The OGSA-DAI Project Team
See Also:
Serialized Form

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private static ErrorID ERROR_ID
          ErrorID
private  java.lang.String mLocalizedMessage
          Localized message
private  java.lang.String mMessage
          Message
private  java.lang.Object[] mParameters
          Parameters
private  DAIUniqueID mUniqueID
          Unique ID
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
InternalFaultException(ServerException cause)
          Constructor.
 
Method Summary
 ErrorID getErrorID()
          Gets the error ID of this type of exception.
 DAIUniqueID getExceptionID()
          Gets the unique ID associated with the server-side exception.
 java.lang.String getLocalizedMessage()
          Gets a localized message describing the error.
 java.lang.String getMessage()
          Gets a message describing the error.
 java.lang.Object[] getParameters()
          Gets the parameters associated with the error - a one-element array containing the unique exception ID.
 boolean hasChild()
          Gets whether there is a child exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

ERROR_ID

private static final ErrorID ERROR_ID
ErrorID


mParameters

private java.lang.Object[] mParameters
Parameters


mMessage

private java.lang.String mMessage
Message


mLocalizedMessage

private java.lang.String mLocalizedMessage
Localized message


mUniqueID

private DAIUniqueID mUniqueID
Unique ID

Constructor Detail

InternalFaultException

public InternalFaultException(ServerException cause)
Constructor.

Parameters:
cause - Cause of the problem. This provides the unique ID to be sent held within this exception's messages.
Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Description copied from interface: DAIExceptionInformation
Gets a localized message describing the error.

Specified by:
getLocalizedMessage in interface DAIExceptionInformation
Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
message.

getMessage

public java.lang.String getMessage()
Description copied from interface: DAIExceptionInformation
Gets a message describing the error.

Specified by:
getMessage in interface DAIExceptionInformation
Overrides:
getMessage in class java.lang.Throwable
Returns:
message.

getExceptionID

public DAIUniqueID getExceptionID()
Gets the unique ID associated with the server-side exception.

Specified by:
getExceptionID in interface DAIExceptionInformation
Returns:
unique ID.

getErrorID

public ErrorID getErrorID()
Gets the error ID of this type of exception.

Specified by:
getErrorID in interface DAIExceptionInformation
Returns:
error ID.

getParameters

public java.lang.Object[] getParameters()
Gets the parameters associated with the error - a one-element array containing the unique exception ID.

Specified by:
getParameters in interface DAIExceptionInformation
Returns:
parameters.

hasChild

public boolean hasChild()
Gets whether there is a child exception.

Specified by:
hasChild in interface DAIExceptionInformation
Returns:
false always.
See Also:
DAIExceptionInformation.hasChild()