|
|||||||||||
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.ResponseException
Title: ResponseException
Description: This class is the superclass for Response class exceptions
Copyright: Copyright (c) 2004
Company: PTC
Field Summary | |
private ResponseException |
m_reNextException
|
private ResponseItem |
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 | |
ResponseException()
Constructs a ResponseException with nulls for message, causing item and nested exception. |
|
ResponseException(String message)
Constructs a new ResponseException with the specified detail message. |
|
ResponseException(String message,
ResponseItem item)
Constructs a new ResponseException with the specified detail message and causing item. |
|
ResponseException(String message,
ResponseItem item,
Throwable nestedException)
Constructs a new ResponseException with the specified detail message causing item, and nested exception. |
Method Summary | |
ResponseItem |
getItem()
Item that caused the exception |
String |
getMessage()
Similar to java.lang.Throwable.getMessage() . |
Throwable |
getNestedException()
Cause of the exception (if any). |
ResponseException |
getNextException()
Retrieves the exception chained to this ResponseException object. |
void |
setItem(ResponseItem 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(ResponseException nextException)
Adds an ResponseException 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 ResponseItem m_riItem
private ResponseException m_reNextException
private Throwable m_tNestedException
private String m_strMessage
Constructor Detail |
public ResponseException()
setMessage(String message)
setItem(ResponseItem item)
setNestedException(Throwable nestedException)
public ResponseException(String message)
setItem(ResponseItem item)
setNestedException(Throwable nestedException)
message
- Error messagepublic ResponseException(String message, ResponseItem item)
setNestedException(Throwable nestedException)
message
- Error messageitem
- Causing itempublic ResponseException(String message, ResponseItem item, Throwable nestedException)
message
- Error messageitem
- Causing itemnestedException
- Nested exceptionMethod Detail |
public ResponseItem getItem()
public void setItem(ResponseItem item)
item
- - Response item that caused the exception. Needed for the likely case
if the exception is caught and handled outside the code actually forming the Responsepublic ResponseException getNextException()
ResponseException
object.
ResponseException
object in the chain; null
if there are nonepublic void setNextException(ResponseException nextException)
ResponseException
object to the end of the chain.
nextException
- - the new exception that will be added to the end of the ResponseException
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 ResponseException 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 |