Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.jdeveloper.deploy
Class DeployException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by oracle.jdeveloper.deploy.DeployException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
VetoableDeployException

public class DeployException
extends java.io.IOException

This class and its subclasses represent an exception that occurs when the process of deploying (either preparation of deployment or deployment itself) is unable to complete. The message passed through DeployException should be displayed to the user explaining why deployment was unable to proceed.

This class anticipates the introduction of "chained exceptions", which are scheduled to appear starting in JDK 1.4 in the Throwable class. If a chained exception is associated with this exception, the chained stack trace will be printed after this exception's stack trace.

See Also:
Serialized Form

Constructor Summary
DeployException()
          Constructs a DeployException with no specific detail message.
DeployException(java.lang.String s)
          Constructs a DeployException with the specified detail message.
DeployException(java.lang.String s, java.lang.Object source)
          Constructs a DeployException with the specified detail message.
DeployException(java.lang.String s, java.lang.Throwable cause)
          Constructs a DeployException with the specified detail message and chains this exception to the given Throwable.
DeployException(java.lang.String s, java.lang.Throwable cause, java.lang.Object source)
          Constructs a DeployException with the specified detail message and chains this exception to the given Throwable.
DeployException(java.lang.Throwable cause)
          Constructs a DeployException with no specified detail message and chains this exception to the given Throwable.
 
Method Summary
 java.lang.Object getSource()
          Get the source of the Exception, this may not be where the exception originated, but is rather the call-out point from the framework.
 void printCause(java.io.PrintWriter printWriter)
           
 void printCauseStackTrace(java.io.PrintWriter printWriter)
          Prints the stack trace of the exception that caused this exception.
 void setSource(java.lang.Object source)
          Set the source of the Exception, attempt to overwrite existing value is ignored silently.
 
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
 

Constructor Detail

DeployException

public DeployException()
Constructs a DeployException with no specific detail message.


DeployException

public DeployException(java.lang.Throwable cause)
Constructs a DeployException with no specified detail message and chains this exception to the given Throwable. The Throwable's stack trace is printed out after this exception's stack trace when any one of the printStackTrace() methods is called.


DeployException

public DeployException(java.lang.String s)
Constructs a DeployException with the specified detail message. This message should be considered translatable.

Parameters:
s - the detail message.

DeployException

public DeployException(java.lang.String s,
                       java.lang.Object source)
Constructs a DeployException with the specified detail message. This message should be considered translatable. Also allows the source of the error to be attached to the exception.

Parameters:
s - the detail message.
source - the source object where the error was detected.

DeployException

public DeployException(java.lang.String s,
                       java.lang.Throwable cause)
Constructs a DeployException with the specified detail message and chains this exception to the given Throwable. The Throwable's stack trace is printed out after this exception's stack trace when any one of the printStackTrace() methods is called.


DeployException

public DeployException(java.lang.String s,
                       java.lang.Throwable cause,
                       java.lang.Object source)
Constructs a DeployException with the specified detail message and chains this exception to the given Throwable. Also allows the exception source Object to be passed through to the error handling system. The Throwable's stack trace is printed out after this exception's stack trace when any one of the printStackTrace() methods is called.

Method Detail

printCauseStackTrace

public void printCauseStackTrace(java.io.PrintWriter printWriter)
Prints the stack trace of the exception that caused this exception. This method does not recurse; it only looks for the most immediate cause of this exception. If there is no cause, this method does nothing.


printCause

public void printCause(java.io.PrintWriter printWriter)

getSource

public java.lang.Object getSource()
Get the source of the Exception, this may not be where the exception originated, but is rather the call-out point from the framework.


setSource

public void setSource(java.lang.Object source)
Set the source of the Exception, attempt to overwrite existing value is ignored silently.

Parameters:
source -

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.