|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ca.sqlpower.architect.ArchitectRuntimeException
public class ArchitectRuntimeException
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.
| 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 |
|---|
protected ArchitectException wrapped
| Constructor Detail |
|---|
public ArchitectRuntimeException(ArchitectException wrapme)
| Method Detail |
|---|
public java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic ArchitectException asArchitectException()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||