|
SAP NetWeaver 7.30 (SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.sap.netweaver.bc.uwl.UWLException
public class UWLException
The UWLException class adds "exception chaining" which is available in jdk1.4.
The methods printStackTrace, getMessage and getLocalizedMessage are over ridden
in order to take care of the possible nested exception.
This class extensively uses the error categories and codes specified in
ErrorMessages.
| Constructor Summary | |
|---|---|
UWLException(int category,
int code)
This constructor creates the object with the error message associated with the given errocategory and code. |
|
UWLException(int category,
int code,
String message)
This constructor calls the constructor of the super class. |
|
UWLException(int category,
int code,
Throwable original)
|
|
UWLException(int category,
String message)
This constructor is similar to UWLException(int, int, java.lang.String)
except for the fact that error code is considered equal to zero. |
|
UWLException(int category,
Throwable original)
This is one of the constructors that will be useful if the user needs the nested exception feature. |
|
| Method Summary | |
|---|---|
int |
getCode()
|
String |
getLocalizedMessage()
If the original exception is not null, this method concatenates the localized messages of this exception and the nested exception. |
String |
getMessage()
If the original exception is not null, this method concatenates the messages of this exception and the nested exception. |
Throwable |
getOriginalException()
|
String |
getUwlExceptionID()
|
void |
printStackTrace()
If the nested exception is not null, this will print its stack trace first. |
void |
printStackTrace(PrintStream stream)
If the nested exception is not null, this will print its stack trace first. |
void |
printStackTrace(PrintWriter writer)
If the nested exception is not null, this will print its stack trace first. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UWLException(int category,
int code,
String message)
ErrorMessages, it first obtains the basic error message.
Then to the above, it concatenates the message passed to it.
category - the error category like database.code - the error code like NO_URL_SPECIFIED.message - the additional error message.Exception.Exception(java.lang.String)
public UWLException(int category,
String message)
UWLException(int, int, java.lang.String)
except for the fact that error code is considered equal to zero.
category - the error category like database.message - the additional message.
public UWLException(int category,
Throwable original)
category - the error category like database.original - the original exception that needs to be nested.
public UWLException(int category,
int code,
Throwable original)
public UWLException(int category,
int code)
category - the error category like database.code - the error code like NO_URL_SPECIFIED.Exception.Exception(java.lang.String)| Method Detail |
|---|
public Throwable getOriginalException()
public void printStackTrace()
printStackTrace in class ThrowableThrowable.printStackTrace()public void printStackTrace(PrintStream stream)
printStackTrace in class Throwablestream - the stream to which this stack trace needs to be printed.Throwable.printStackTrace(java.io.PrintStream)public void printStackTrace(PrintWriter writer)
printStackTrace in class Throwablewriter - the print writer to which this stack trace needs to be printed.Throwable.printStackTrace(java.io.PrintWriter)public String getMessage()
getMessage in class ThrowableThrowable.getMessage()public String getLocalizedMessage()
getLocalizedMessage in class ThrowableThrowable.getLocalizedMessage()public int getCode()
public String getUwlExceptionID()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] UWLJWF
|
[sap.com] tc/kmc/bc.uwl/api
|
-
|
EP-BC-UWL
|
[sap.com] UWLJWF
|
[sap.com] tc/kmc/bc.uwl/api
|
default
|
EP-BC-UWL
|
|
SAP NetWeaver 7.30 (SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||