com.dynalivery.harmoni
Class HarmoniError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.dynalivery.harmoni.HarmoniError
Direct Known Subclasses:
ConcatenationLimitException, DuplicateObjectException, FileReturnException, HarmoniClientError, HarmoniFatalError, HarmoniInternalError, HarmoniServiceError, InternalRepositoryException, InvalidCallSequenceException, InvalidClientPathnameException, InvalidParameterException, InvalidPathnameException, InvalidReportServerPathException, RepositoryNotEnabledException, RepositorySecurityException

public class HarmoniError
extends java.lang.Exception

See Also:
Serialized Form

Field Summary
 int errorCode
           
 java.lang.String errorKind
           
 java.lang.String errorText
           
 
Constructor Summary
HarmoniError()
          Construct a HarmoniError with empty text.
HarmoniError(int code, java.lang.String text)
          Construct a HarmoniError with the given code and text.
HarmoniError(int code, java.lang.String text, java.lang.String kind)
          Construct a HarmoniError with the given code, text and kind.
HarmoniError(java.lang.String text)
          Construct a HarmoniError with the given text.
 
Method Summary
 int getCode()
          Return the code of the error.
 java.lang.String getKind()
          Return the kind of the error.
 java.lang.String getText()
          Return the text of the error.
 void Report()
          Report a server error in the client.
 void Throw()
          Throw this error to a handler in the client.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorCode

public int errorCode

errorText

public java.lang.String errorText

errorKind

public java.lang.String errorKind
Constructor Detail

HarmoniError

public HarmoniError()
Construct a HarmoniError with empty text.

HarmoniError

public HarmoniError(int code,
                    java.lang.String text)
Construct a HarmoniError with the given code and text.
Parameters:
code - The error code.
text - The error text.

HarmoniError

public HarmoniError(int code,
                    java.lang.String text,
                    java.lang.String kind)
Construct a HarmoniError with the given code, text and kind.
Parameters:
code - The error code.
text - The error text.
kind - The error kind.

HarmoniError

public HarmoniError(java.lang.String text)
Construct a HarmoniError with the given text.
Parameters:
text - The error text.
Method Detail

getCode

public int getCode()
Return the code of the error.
Returns:
The code describing the error.

getKind

public java.lang.String getKind()
Return the kind of the error.
Returns:
The text describing the error.

getText

public java.lang.String getText()
Return the text of the error.
Returns:
The text describing the error.

Report

public void Report()
Report a server error in the client.

Throw

public void Throw()
           throws HarmoniError
Throw this error to a handler in the client.
Throws:
HarmoniError - The error that is to be thrown.