|
|||||||||||
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.ptc.edadata.RequestException
Title: RequestException
Description: This class is the superclass for Request class exceptions
Copyright: Copyright (c) 2004
Company: PTC
Field Summary | |
private RequestException |
m_reNextException
|
private RequestItem |
m_riItem
|
private String |
m_strMessage
|
private Throwable |
m_tNestedException
|
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
RequestException()
Constructs a RequestException with nulls for message, causing item and nested exception. |
|
RequestException(String message)
Constructs a new RequestException with the specified detail message. |
|
RequestException(String message,
RequestItem item)
Constructs a new RequestException with the specified detail message and causing item. |
|
RequestException(String message,
RequestItem item,
Throwable nestedException)
Constructs a new RequestException with the specified detail message causing item, and nested exception. |
Method Summary | |
RequestItem |
getItem()
Item that caused the exception |
String |
getMessage()
Similar to java.lang.Throwable.getMessage() . |
Throwable |
getNestedException()
Cause of the exception (if any). |
RequestException |
getNextException()
Retrieves the exception chained to this RequestException object. |
void |
setItem(RequestItem item)
Sets item that caused the exception |
void |
setMessage(String message)
Sets error message. |
void |
setNestedException(Throwable nestedException)
Set exception's cause (if any). |
void |
setNextException(RequestException nextException)
Adds an RequestException object to the end of the chain. |
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 |
Field Detail |
private RequestItem m_riItem
private RequestException m_reNextException
private Throwable m_tNestedException
private String m_strMessage
Constructor Detail |
public RequestException()
setMessage(String message)
setItem(RequestItem item)
setNestedException(Throwable nestedException)
public RequestException(String message)
setItem(RequestItem item)
setNestedException(Throwable nestedException)
message
- Error messagepublic RequestException(String message, RequestItem item)
setNestedException(Throwable nestedException)
message
- Error messageitem
- Causing itempublic RequestException(String message, RequestItem item, Throwable nestedException)
message
- Error messageitem
- Causing itemnestedException
- Nested exceptionMethod Detail |
public RequestItem getItem()
public void setItem(RequestItem item)
item
- - Request item that caused the exception. Needed for the likely case
if the exception is caught and handled outside the code actually forming the Requestpublic RequestException getNextException()
RequestException
object.
RequestException
object in the chain; null
if there are nonepublic void setNextException(RequestException nextException)
RequestException
object to the end of the chain.
nextException
- - the new exception that will be added to the end of the RequestException
chainpublic Throwable getNestedException()
java.lang.Throwable.getCause()
; the only reason
to repeat is that getCause() is absent in JDK 1.3
public void setNestedException(Throwable nestedException)
java.lang.Throwable.initCause(Throwable cause)
;
the only reason to repeat is that initCause() is absent in JDK 1.3
nestedException
- Exception's causepublic String getMessage()
java.lang.Throwable.getMessage()
.
Introduced only to make RequestException easily XML-deserializable
public void setMessage(String message)
message
- Error message
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |