com.dynalivery.pcre
Class PCREError
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.dynalivery.pcre.PCREError
- Direct Known Subclasses:
- ConcatenationLimitException, DuplicateObjectException, FileExpiredException, FileReturnException, IncompleteBLOBException, InternalRepositoryException, InternalRepositoryServerException, InvalidCallSequenceException, InvalidClientPathnameException, InvalidParameterException, InvalidPathnameException, InvalidReportServerPathException, PCREClientError, PCREFatalError, PCREInternalError, PCREServiceError, PinnedFileException, RepositoryAuthenticationException, RepositoryCommFailureException, RepositoryNotEnabledException, RepositorySecurityException, RepositoryServerUnavailableException
- public class PCREError
- extends java.lang.Exception
- See Also:
- Serialized Form
|
Constructor Summary |
PCREError()
Construct a PCREError with empty text. |
PCREError(int code,
java.lang.String text)
Construct a PCREError with the given code and text. |
PCREError(int code,
java.lang.String text,
java.lang.String kind)
Construct a PCREError with the given code, text and kind. |
PCREError(java.lang.String text)
Construct a PCREError 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 |
errorCode
public int errorCode
errorText
public java.lang.String errorText
errorKind
public java.lang.String errorKind
PCREError
public PCREError()
- Construct a PCREError with empty text.
PCREError
public PCREError(int code,
java.lang.String text)
- Construct a PCREError with the given code and text.
- Parameters:
code - The error code.text - The error text.
PCREError
public PCREError(int code,
java.lang.String text,
java.lang.String kind)
- Construct a PCREError with the given code, text and kind.
- Parameters:
code - The error code.text - The error text.kind - The error kind.
PCREError
public PCREError(java.lang.String text)
- Construct a PCREError with the given text.
- Parameters:
text - The error text.
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 PCREError
- Throw this error to a handler in the client.
- Throws:
- PCREError - The error that is to be thrown.