sync4j.syncclient.spdm
Class DMException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bysync4j.syncclient.spdm.DMException
All Implemented Interfaces:
java.io.Serializable

public class DMException
extends java.lang.Exception

This class represents a device manager error. It keeps track of the causing exception, if any.

See Also:
Serialized Form

Constructor Summary
DMException()
          Creates a new instance of UpdateException without detail message.
DMException(java.lang.String msg)
          Constructs an instance of DMException with the specified detail message.
DMException(java.lang.String msg, java.lang.Throwable cause)
          Constructs an instance of DMException with the specified detail message and root cause.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the root cause of this exception
 void printStackTrace()
          Prints the exception and its cause (if any) stack trace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DMException

public DMException()
Creates a new instance of UpdateException without detail message.


DMException

public DMException(java.lang.String msg)
Constructs an instance of DMException with the specified detail message.

Parameters:
msg - the detail message.

DMException

public DMException(java.lang.String msg,
                   java.lang.Throwable cause)
Constructs an instance of DMException with the specified detail message and root cause.

Parameters:
msg - the detail message.
cause - the root cause
Method Detail

getCause

public java.lang.Throwable getCause()
Returns the root cause of this exception

Returns:
the cause of this exception if any, or null otherwise

printStackTrace

public void printStackTrace()
Prints the exception and its cause (if any) stack trace



Copyright © 2003-2005 Sync4j.