Class DatabaseServiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.openrefine.extension.database.DatabaseServiceException
-
- All Implemented Interfaces:
Serializable
public class DatabaseServiceException extends Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DatabaseServiceException(boolean sqlException, String sqlState, int sqlCode, String message)DatabaseServiceException(String exception)DatabaseServiceException(String string, SQLException e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSqlCode()StringgetSqlState()booleanisSqlException()voidsetSqlCode(int sqlCode)voidsetSqlException(boolean sqlException)voidsetSqlState(String sqlState)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DatabaseServiceException
public DatabaseServiceException(String exception)
-
DatabaseServiceException
public DatabaseServiceException(boolean sqlException, String sqlState, int sqlCode, String message)
-
DatabaseServiceException
public DatabaseServiceException(String string, SQLException e)
-
-
Method Detail
-
isSqlException
public boolean isSqlException()
-
setSqlException
public void setSqlException(boolean sqlException)
-
getSqlState
public String getSqlState()
-
setSqlState
public void setSqlState(String sqlState)
-
getSqlCode
public int getSqlCode()
-
setSqlCode
public void setSqlCode(int sqlCode)
-
-