ca.sqlpower.architect
Class ArchitectRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ca.sqlpower.architect.ArchitectRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArchitectVersionParseException

public class ArchitectRuntimeException
extends java.lang.RuntimeException

The ArchitectRuntimeException is designed to wrap an ArchitectException in cases where a method which is not allowed to throw checked exceptions must propogate an ArchitectException.

This exception takes on the message and cause of the ArchitectException that it wraps, so it will rarely be necessary to "unwrap" an ArchitectException from an ArchitectRuntimeException. If you do need that (for instance, when re-throwing as a checked exception), use the asArchitectException method.

See Also:
Serialized Form

Field Summary
protected  ArchitectException wrapped
           
 
Constructor Summary
ArchitectRuntimeException(ArchitectException wrapme)
          Creates an unchecked exception wrapper for the given ArchitectException.
 
Method Summary
 ArchitectException asArchitectException()
          Returns the actual ArchitectException that this exception wraps.
 java.lang.Throwable getCause()
          Returns the cause of the wrapped ArchitectException.
 java.lang.String getMessage()
          Returns the message of the wrapped ArchitectException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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
 

Field Detail

wrapped

protected ArchitectException wrapped
Constructor Detail

ArchitectRuntimeException

public ArchitectRuntimeException(ArchitectException wrapme)
Creates an unchecked exception wrapper for the given ArchitectException.

Method Detail

getCause

public java.lang.Throwable getCause()
Returns the cause of the wrapped ArchitectException. The return value will be null if the wrapped exception has no cause.

Overrides:
getCause in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Returns the message of the wrapped ArchitectException.

Overrides:
getMessage in class java.lang.Throwable

asArchitectException

public ArchitectException asArchitectException()
Returns the actual ArchitectException that this exception wraps. It shouldn't normally be nexessary to use this method.



Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca