Weaver 3.1.0a1-D1

com.oldlight.weaver.clientbinding
Class WeaverClientException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.oldlight.weaver.WeaverException
              extended bycom.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

Field Summary
private  String identifier
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
WeaverClientException(String message, String identifier)
          Creates a new WeaverClientException.
WeaverClientException(String message, Throwable cause, String identifier)
          Creates a new WeaverClientException.
WeaverClientException(Throwable cause, String identifier)
          Creates a new WeaverClientException.
 
Method Summary
 String getId()
          Retrieves the exception id.
 
Methods inherited from class com.oldlight.weaver.WeaverException
getStackTraceAsString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

identifier

private String identifier
Constructor Detail

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.
Method Detail

getId

public String getId()
Retrieves the exception id.

Returns:
The exception id.

Copyright ©Paul Harvey