|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
scriptella.core.SystemException
scriptella.spi.ProviderException
public abstract class ProviderException
Thrown by connection provider to indicate any kind of failure.
Service Providers must provide subclasses of this exception.
| Constructor Summary | |
|---|---|
ProviderException()
|
|
ProviderException(java.lang.String message)
|
|
ProviderException(java.lang.String message,
java.lang.Throwable cause)
|
|
ProviderException(java.lang.Throwable cause)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProviderException()
public ProviderException(java.lang.String message)
public ProviderException(java.lang.String message,
java.lang.Throwable cause)
public ProviderException(java.lang.Throwable cause)
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||