public abstract class ProviderException extends SystemException
Service Providers must provide subclasses of this exception.
Constructor and Description |
---|
ProviderException() |
ProviderException(java.lang.String message) |
ProviderException(java.lang.String message,
java.lang.Throwable cause) |
ProviderException(java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
ProviderException |
addErrorCode(java.lang.String errorCode)
Adds error code to this exception.
|
java.util.Set<java.lang.String> |
getErrorCodes()
Returns error codes attached to this exception.
|
java.lang.String |
getErrorStatement()
Returns a statement for this error if any.
|
java.lang.Throwable |
getNativeException()
This method should be overriden by providers relying on external APIs to work with connections.
|
abstract java.lang.String |
getProviderName()
Overriden by subclasses to provide user friendly provider name.
|
protected ProviderException |
setErrorStatement(java.lang.String errStmt)
Sets problem statement which caused this exception/
|
java.lang.String |
toString() |
public ProviderException()
public ProviderException(java.lang.String message)
public ProviderException(java.lang.String message, java.lang.Throwable cause)
public ProviderException(java.lang.Throwable cause)
public java.util.Set<java.lang.String> getErrorCodes()
Do not use ", . ;" in error codes.
public ProviderException addErrorCode(java.lang.String errorCode)
errorCode
- vendor specific error code.protected ProviderException setErrorStatement(java.lang.String errStmt)
errStmt
- statement text.public java.lang.Throwable getNativeException()
Examples: SQL Exceptions, LDAP connection exceptions etc.
public java.lang.String getErrorStatement()
public abstract java.lang.String getProviderName()
public java.lang.String toString()
toString
in class java.lang.Throwable
Copyright © Copyright 2006-2019 The Scriptella Project Team.