com.sage.accpac.sm
Class DBLinkException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sage.accpac.sm.DBLinkException
All Implemented Interfaces:
java.io.Serializable

@NotThreadSafe
public class DBLinkException
extends java.lang.RuntimeException

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.

See Also:
Serialized Form
Thread safety
Not thread-safe

Method Summary
 java.lang.String getMessage()
          gets a string version of the error
 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
 

Method Detail

getReason

public int getReason()
gets the original database layer error


getMessage

public java.lang.String getMessage()
gets a string version of the error

Overrides:
getMessage in class java.lang.Throwable


Copyright © 2010 Sage Software, Inc. All rights reserved.