org.apache.empire.commons
Interface ErrorInfo

All Known Implementing Classes:
BeanRecordProxy, DBAbstractFuncExpr, DBAliasExpr, DBCalcExpr, DBCaseExpr, DBColumn, DBColumnExpr, DBCombinedCmd, DBCommand, DBCommand.DBCmdParameter, DBCommandExpr, DBCommandExpr.DBCmdColumn, DBCommandExpr.DBCmdQuery, DBCommandOracle, DBCompareAndOrExpr, DBCompareColExpr, DBCompareExpr, DBCompareNotExpr, DBConcatExpr, DBConvertExpr, DBCountExpr, DBDatabase, DBDatabaseDriver, DBDatabaseDriver.DBSeqTable, DBDatabaseDriverDerby, DBDatabaseDriverDerby.DBCommandDerby, DBDatabaseDriverH2, DBDatabaseDriverH2.DBCommandH2, DBDatabaseDriverHSql, DBDatabaseDriverHSql.DBCommandHSql, DBDatabaseDriverMSSQL, DBDatabaseDriverMSSQL.DBCommandMSSQL, DBDatabaseDriverMySQL, DBDatabaseDriverMySQL.DBCommandMySQL, DBDatabaseDriverOracle, DBDatabaseDriverPostgreSQL, DBDatabaseDriverPostgreSQL.DBCommandPostreSQL, DBDecodeExpr, DBExistsExpr, DBExpr, DBFuncExpr, DBIndex, DBJoinExpr, DBJoinExprEx, DBObject, DBOrderByExpr, DBQuery, DBQuery.DBQueryColumn, DBReader, DBRecord, DBRecordData, DBRelation, DBRowSet, DBSetExpr, DBSQLScript, DBTable, DBTableColumn, DBValueExpr, DBView, DBView.DBViewColumn, ErrorObject, OracleSYSDatabase, OracleSYSDatabase.DBColComments, OracleSYSDatabase.DBColInfo, OracleSYSDatabase.DBConstraints, OracleSYSDatabase.DBTabComments, OracleSYSDatabase.DBUserConCol, XMLConfiguration, XMLWriter

public interface ErrorInfo

This interface allows access to the last error that occured on a object.


Method Summary
 java.lang.Object[] getErrorParams()
          Returns the parameters used to build the error text.
 java.lang.String getErrorSource()
          Returns the source object's class name that raised the error
 ErrorType getErrorType()
          Returns the last error code.
 boolean hasError()
          Returns wether or not an error is set.
 

Method Detail

hasError

boolean hasError()
Returns wether or not an error is set.

Returns:
true if an error has been set, or otherwise false

getErrorType

ErrorType getErrorType()
Returns the last error code.

Returns:
the error code of ERR_NONE if no error has been set.

getErrorParams

java.lang.Object[] getErrorParams()
Returns the parameters used to build the error text.

Returns:
the error message or null if no error has been set.

getErrorSource

java.lang.String getErrorSource()
Returns the source object's class name that raised the error

Returns:
the error message or null if no error has been set.


Copyright © 2008-2010 Apache Software Foundation. All Rights Reserved.