|
||||||||||
| 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
com.sage.accpac.sm.DBLinkException
@NotThreadSafe public class DBLinkException
The exception that is thrown when a call to any methods of the DBLink fails. It provides access to the original error code from the database layer.
| Constructor Summary | |
|---|---|
DBLinkException()
constructs an instance of DBLinkException with a return code of
success. |
|
DBLinkException(int returnCode)
constructs an instance of DBLinkException with the specified
return code; |
|
DBLinkException(int returnCode,
java.lang.String message)
constructs an instance of DBLinkException with the specified
return code and message; |
|
| Method Summary | |
|---|---|
java.lang.String |
getMessage()
|
int |
getReason()
gets the original database layer error |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DBLinkException()
DBLinkException with a return code of
success.
public DBLinkException(int returnCode)
DBLinkException with the specified
return code;
returnCode - the return code (as will be returned by getReason())
public DBLinkException(int returnCode,
java.lang.String message)
DBLinkException with the specified
return code and message;
returnCode - the return code (as will be returned by getReason()message - the message (as will be returned by getMessage())| Method Detail |
|---|
public int getReason()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||