| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException scriptella.core.SystemException scriptella.spi.ProviderException
All known Subclasses: scriptella.driver.text.TextProviderException, scriptella.driver.mail.MailProviderException, scriptella.driver.velocity.VelocityProviderException, scriptella.driver.ldap.LdapProviderException, scriptella.driver.jexl.JexlProviderException, scriptella.driver.script.ScriptProviderException, scriptella.driver.lucene.LuceneProviderException, scriptella.driver.janino.JaninoProviderException, scriptella.driver.csv.CsvProviderException, scriptella.jdbc.JdbcException, scriptella.driver.xpath.XPathProviderException,
ProviderException | abstract public class ProviderException extends SystemException (Code) | | Thrown by connection provider to indicate any kind of failure.
Service Providers must provide subclasses of this exception.
author: Fyodor Kupolov version: 1.0 |
ProviderException | public ProviderException()(Code) | | |
ProviderException | public ProviderException(String message)(Code) | | |
addErrorCode | public ProviderException addErrorCode(String errorCode)(Code) | | Adds error code to this exception.
Parameters: errorCode - vendor specific error code. this exception for convenience. |
getErrorCodes | public Set<String> getErrorCodes()(Code) | | Returns error codes attached to this exception. For example
JDBC drivers reports 2 error codes: SQLSTATE and vendor code.
Do not use ", . ;" in error codes.
set of error codes. |
getErrorStatement | public String getErrorStatement()(Code) | | Returns a statement for this error if any.
statement text and additional data. |
getNativeException | public Throwable getNativeException()(Code) | | This method should be overriden by providers relying on external APIs to work with connections.
Used only for informative error reporting.
Examples: SQL Exceptions, LDAP connection exceptions etc.
external API throwable wich may be important for user to recognize the problem. |
getProviderName | abstract public String getProviderName()(Code) | | Overriden by subclasses to provide user friendly provider name.
provider name. |
setErrorStatement | protected ProviderException setErrorStatement(String errStmt)(Code) | | Sets problem statement which caused this exception/
Parameters: errStmt - statement text. this exception for convenience. |
|
|