com.ssaglobal.bde
Class BdeResultException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ssaglobal.bde.BdeException
|
+--com.ssaglobal.bde.BdeResultException
- All Implemented Interfaces:
- java.io.Serializable
- public class BdeResultException
- extends BdeException
A BdeResultException is thrown if an error occurs on the server during the processing
of a request. This exception contains detailed information about the error on the server.
Users can get the detailed Message by calling the getBdeMessage() method, which
returns a IBdeMessage object, or catch the generic BdeException.
For e.g.:
try
{
...
manager.List();
}
catch(BdeResultException ex_bdeResultException)
{
IBdeMessage bdeMessage = ex_bdeResultException.getBdeMessage();
String messageCode = bdeMessage.getMessageCode();
}
or
try
{
...
manager.List();
}
catch(BdeException ex_bdeException)
{
String messageText = ex_bdeException.getMessage();
}
- See Also:
- Serialized Form
|
Constructor Summary |
BdeResultException(IBdeMessage bdeMessage)
Constructs a new BdeResultException with the detailed error information as received from the server. |
|
Method Summary |
IBdeMessage |
getBdeMessage()
This method returns the detailed error information in the form of a IBdeMessage
|
java.lang.String |
getMessage()
|
java.lang.String |
toString()
Prints the contents of this object. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BdeResultException
public BdeResultException(IBdeMessage bdeMessage)
- Constructs a new
BdeResultException with the detailed error information as received from the server.
- Parameters:
bdeMessage - the detailed error information
getBdeMessage
public IBdeMessage getBdeMessage()
- This method returns the detailed error information in the form of a
IBdeMessage
- Returns:
- a
IBdeMessage object.
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage in class java.lang.Throwable
toString
public java.lang.String toString()
- Prints the contents of this object.
- Overrides:
toString in class java.lang.Throwable
Visit the SSA Global website for more information.