edu.cmu.sei.osate.workspace
Class AadlModelException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.core.runtime.CoreException
              extended by edu.cmu.sei.osate.workspace.AadlModelException
All Implemented Interfaces:
java.io.Serializable

public class AadlModelException
extends org.eclipse.core.runtime.CoreException

A checked exception representing a failure in the Java model. Java model exceptions contain a Java-specific status object describing the cause of the exception.

This class is not intended to be subclassed by clients. Instances of this class are automatically created by the Java model when problems arise, so there is generally no need for clients to create instances.

See Also:
IAadlModelStatus, Serialized Form

Constructor Summary
AadlModelException(org.eclipse.core.runtime.CoreException exception)
          Creates a Java model exception for the given CoreException.
AadlModelException(IAadlModelStatus status)
          Creates a Java model exception for the given Java-specific status object.
 
Method Summary
 java.lang.Throwable getException()
          Returns the underlying Throwable that caused the failure.
 void printStackTrace(java.io.PrintStream output)
          Prints this exception's stack trace to the given print stream.
 void printStackTrace(java.io.PrintWriter output)
          Prints this exception's stack trace to the given print writer.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.core.runtime.CoreException
getStatus, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AadlModelException

public AadlModelException(org.eclipse.core.runtime.CoreException exception)
Creates a Java model exception for the given CoreException. Equivalent to JavaModelException(exception,IJavaModelStatusConstants.CORE_EXCEPTION.

Parameters:
exception - the CoreException

AadlModelException

public AadlModelException(IAadlModelStatus status)
Creates a Java model exception for the given Java-specific status object.

Parameters:
status - the Java-specific status object
Method Detail

getException

public java.lang.Throwable getException()
Returns the underlying Throwable that caused the failure.

Returns:
the wrappered Throwable, or null if the direct case of the failure was at the Java model layer

printStackTrace

public void printStackTrace(java.io.PrintStream output)
Prints this exception's stack trace to the given print stream.

Overrides:
printStackTrace in class org.eclipse.core.runtime.CoreException
Parameters:
output - the print stream
Since:
3.0

printStackTrace

public void printStackTrace(java.io.PrintWriter output)
Prints this exception's stack trace to the given print writer.

Overrides:
printStackTrace in class org.eclipse.core.runtime.CoreException
Parameters:
output - the print writer
Since:
3.0

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable