com.oldlight.weaver.clientbinding
Class WeaverClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.oldlight.weaver.WeaverException
com.oldlight.weaver.clientbinding.WeaverClientException
- All Implemented Interfaces:
- Serializable
- public class WeaverClientException
- extends WeaverException
WeaverClientExceptions are thrown from W-Beans to flag an error.
In addition to the usual message and an optional embedded Throwable,
WeaverClientException contains an id field. This may be set
to any value you choose - its intended use is in finer grained
identification of the exception when handled via the catch tag
in the WAD file.
- Author:
- Paul Harvey
- See Also:
- Serialized Form
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Method Summary |
String |
getId()
Retrieves the exception id. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
identifier
private String identifier
WeaverClientException
public WeaverClientException(String message,
String identifier)
- Creates a new WeaverClientException.
- Parameters:
message
- A message describing the exception.identifier
- An exception id.
WeaverClientException
public WeaverClientException(Throwable cause,
String identifier)
- Creates a new WeaverClientException.
- Parameters:
cause
- A Throwable to embed - usually the original cause of the error.identifier
- An exception id.
WeaverClientException
public WeaverClientException(String message,
Throwable cause,
String identifier)
- Creates a new WeaverClientException.
- Parameters:
message
- A message describing the exception.cause
- A Throwable to embed - usually the original cause of the error.identifier
- An exception id.
getId
public String getId()
- Retrieves the exception id.
- Returns:
- The exception id.