|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DSWSException
The DSWSException interface is an exception interface of the Business Objects Web Services. The purpose of this interface is to throw an exception thay may occur in the code. For example, getOperation retrieves the method that has caused an exception.
Example: Retrieve the exception message produced by the Web Services SDK.
try
{
// write web service code
}
catch(AxisFault af)
{
DSWSException d = Consumer.GetAxisFaultDetails(af);
if (d!=null)
{
String afString = "exception caught
";
afString += d.getCauseID();
afString += ".
";
afString += d.getCauseException();
afString += ".
";
out.println(afString);
}
else
{
System.out.println(af.toString());
}
}
| Nested Class Summary | |
|---|---|
static class |
DSWSException.Factory
A class with methods for creating instances of the DSWSException type. |
| Field Summary | |
|---|---|
static org.apache.xmlbeans.SchemaType |
type
Internal Use Only. |
| Method Summary | |
|---|---|
java.lang.String |
getCallStackTrace()
Returns the CallStackTrace element. |
java.lang.String |
getCauseDetail()
Retrieve more explanations about the exception cause. |
java.lang.String |
getCauseException()
Retrieve the name of the class that caused the exception. |
java.lang.String |
getCauseID()
Retrieve the exception cause id. |
java.lang.String |
getCauseMessage()
Retrieves the exception message produced by the underlying Enterprise SDK. |
java.lang.String |
getID()
Retrieve the exception id. |
java.lang.String |
getMessage()
Retrieves the exception message produced by the Web Services SDK. |
java.lang.String |
getOperation()
Retrieve the web service operation that caused the exception. |
boolean |
isNilCallStackTrace()
Checks if the CallStackTrace element is set to Nil. |
boolean |
isNilCauseDetail()
Checks if the CauseDetail element has been set to Nil. |
boolean |
isNilCauseException()
Checks if the CauseException element is nil. |
boolean |
isNilCauseID()
Checks if the CauseID element has been set to Nil. |
boolean |
isNilCauseMessage()
Checks if the CauseMessage element has been set to Nil. |
boolean |
isSetCallStackTrace()
Checks if the CallStackTrace element has been set. |
boolean |
isSetCauseDetail()
Checks if the CauseDetail element has been set. |
boolean |
isSetCauseException()
Checks if the CauseException element has been set. |
boolean |
isSetCauseID()
Checks if the CauseID element has been set. |
boolean |
isSetCauseMessage()
Checks if the CauseMessage element has been set. |
void |
setCallStackTrace(java.lang.String callStackTrace)
Sets the CallStackTrace element. |
void |
setCauseDetail(java.lang.String causeDetail)
Set more explanation about the exception cause. |
void |
setCauseException(java.lang.String causeException)
Set the name of the class that caused the exception. |
void |
setCauseID(java.lang.String causeID)
Set the exception cause id. |
void |
setCauseMessage(java.lang.String causeMessage)
Sets the exception message produced by the underlying Enterprise SDK. |
void |
setID(java.lang.String id)
Set the exception id. |
void |
setMessage(java.lang.String message)
Sets the exception message produced by the Web Services SDK. |
void |
setNilCallStackTrace()
Nils the CallStackTrace element. |
void |
setNilCauseDetail()
Nils the CauseDetail element. |
void |
setNilCauseException()
Nils the CauseException element. |
void |
setNilCauseID()
Nils the CauseID element. |
void |
setNilCauseMessage()
Nils the CauseMessage element. |
void |
setOperation(java.lang.String operation)
Set the web service operation that caused the exception. |
void |
unsetCallStackTrace()
Deletes or unsets the CallStackTrace element. |
void |
unsetCauseDetail()
Deletes or unsets the CauseDetail element. |
void |
unsetCauseException()
Deletes or unsets the CauseException element. |
void |
unsetCauseID()
Deletes or unsets the CauseID element. |
void |
unsetCauseMessage()
Deletes or unsets the CauseMessage element. |
org.apache.xmlbeans.XmlString |
xgetCallStackTrace()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetCauseDetail()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetCauseException()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetCauseID()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetCauseMessage()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetID()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetMessage()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetOperation()
Internal Use Only. |
void |
xsetCallStackTrace(org.apache.xmlbeans.XmlString callStackTrace)
Internal Use Only. |
void |
xsetCauseDetail(org.apache.xmlbeans.XmlString causeDetail)
Internal Use Only. |
void |
xsetCauseException(org.apache.xmlbeans.XmlString causeException)
Internal Use Only. |
void |
xsetCauseID(org.apache.xmlbeans.XmlString causeID)
Internal Use Only. |
void |
xsetCauseMessage(org.apache.xmlbeans.XmlString causeMessage)
Internal Use Only. |
void |
xsetID(org.apache.xmlbeans.XmlString id)
Internal Use Only. |
void |
xsetMessage(org.apache.xmlbeans.XmlString message)
Internal Use Only. |
void |
xsetOperation(org.apache.xmlbeans.XmlString operation)
Internal Use Only. |
| Field Detail |
|---|
static final org.apache.xmlbeans.SchemaType type
| Method Detail |
|---|
java.lang.String getID()
String containing the exception id.org.apache.xmlbeans.XmlString xgetID()
Internal Use Only.
void setID(java.lang.String id)
id - A String that contains the exception id.void xsetID(org.apache.xmlbeans.XmlString id)
Internal Use Only.
java.lang.String getMessage()
String that contains the exception message produced by the Web Services SDK.org.apache.xmlbeans.XmlString xgetMessage()
Internal Use Only.
void setMessage(java.lang.String message)
message - A String that contains the exception message produced by the Web Services SDK.void xsetMessage(org.apache.xmlbeans.XmlString message)
Internal Use Only.
java.lang.String getOperation()
String that contains the web service operation that caused the exception.
Noneorg.apache.xmlbeans.XmlString xgetOperation()
Internal Use Only.
void setOperation(java.lang.String operation)
operation - A String that contains the web service operation name.void xsetOperation(org.apache.xmlbeans.XmlString operation)
Internal Use Only.
java.lang.String getCallStackTrace()
String that contains the CallStackTrace element.org.apache.xmlbeans.XmlString xgetCallStackTrace()
Internal Use Only.
boolean isNilCallStackTrace()
true if the CallStackTrace element has been set to nil,otherwise false.boolean isSetCallStackTrace()
true if the CallStackTrace element has been set,otherwise false.void setCallStackTrace(java.lang.String callStackTrace)
callStackTrace - String containing the web service operation name.void xsetCallStackTrace(org.apache.xmlbeans.XmlString callStackTrace)
Internal Use Only.
void setNilCallStackTrace()
void unsetCallStackTrace()
java.lang.String getCauseException()
String that contains the name of the class that caused the exception.org.apache.xmlbeans.XmlString xgetCauseException()
Internal Use Only.
boolean isNilCauseException()
true if the CauseException element has been set to nil,otherwise false.boolean isSetCauseException()
true if the CauseException element has been set,otherwise false.void setCauseException(java.lang.String causeException)
causeException - A String that contains the name of the class that caused the exception.void xsetCauseException(org.apache.xmlbeans.XmlString causeException)
Internal Use Only.
void setNilCauseException()
void unsetCauseException()
java.lang.String getCauseID()
String that contains the the cause id.org.apache.xmlbeans.XmlString xgetCauseID()
Internal Use Only.
boolean isNilCauseID()
true if the CauseID element has been set to nil,otherwise false.boolean isSetCauseID()
true if the CauseID element has been set,otherwise false.void setCauseID(java.lang.String causeID)
causeID - String containing the cause id.void xsetCauseID(org.apache.xmlbeans.XmlString causeID)
Internal Use Only.
void setNilCauseID()
void unsetCauseID()
java.lang.String getCauseMessage()
String that contains the exception message produced by the underlying Enterprise SDK.org.apache.xmlbeans.XmlString xgetCauseMessage()
Internal Use Only.
boolean isNilCauseMessage()
true if the CauseMessage element has been set to nil,otherwise false.boolean isSetCauseMessage()
true if the CauseMessage element has been set,otherwise false.void setCauseMessage(java.lang.String causeMessage)
causeMessage - A String that contains the exception message produced by the underlying Enterprise SDK.void xsetCauseMessage(org.apache.xmlbeans.XmlString causeMessage)
Internal Use Only.
void setNilCauseMessage()
void unsetCauseMessage()
java.lang.String getCauseDetail()
String that contains more explanations about the exception cause.org.apache.xmlbeans.XmlString xgetCauseDetail()
Internal Use Only.
boolean isNilCauseDetail()
true if the CauseDetail element has been set to nil,otherwise false.boolean isSetCauseDetail()
true if the CauseDetail element has been set,otherwise false.void setCauseDetail(java.lang.String causeDetail)
causeDetail - A String that contains more explanations about the exception cause.void xsetCauseDetail(org.apache.xmlbeans.XmlString causeDetail)
Internal Use Only.
void setNilCauseDetail()
void unsetCauseDetail()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||