commonj.connector.metadata
Class MetadataException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.resource.ResourceException
              extended by commonj.connector.metadata.MetadataException
All Implemented Interfaces:
Serializable

public class MetadataException
extends ResourceException

Exception used to indicate errors during metadata discovery and import.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
MetadataException(String msg)
          Constructs a new exception with the specified detail message.
MetadataException(String msg, Throwable cause)
          Constructs a new exception with the specified detail message and cause.
 
Method Summary
 
Methods inherited from class javax.resource.ResourceException
getErrorCode, getLinkedException, getMessage, setErrorCode, setLinkedException
 
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
 

Constructor Detail

MetadataException

public MetadataException(String msg)
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause().

Parameters:
msg - the detail message. A null value should not be used.

MetadataException

public MetadataException(String msg,
                         Throwable cause)
Constructs a new exception with the specified detail message and cause.

Parameters:
msg - the detail message
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)