public class ModuleException extends Exception
A ModuleException object is created by the Runtime to denote an
exception condition in the lifecycle of a module. ModuleExceptions
should not be created by module developers.
| Constructor and Description |
|---|
ModuleException(String message)
Creates a
ModuleException with the specified message. |
ModuleException(String message,
Throwable cause)
Creates a
ModuleException with the specified message and
exception cause. |
ModuleException(Throwable cause)
Creates a
ModuleException with the specified exception cause. |
| Modifier and Type | Method and Description |
|---|---|
static ModuleException |
launderThrowable(Throwable cause)
Launders the given throwable
Rethrows a given
RuntimeException
Rethrows a given Error
Returns a given ModuleException
Otherwise wrapps the given Throwable in a ModuleException
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ModuleException(String message)
ModuleException with the specified message.message - The message.public ModuleException(String message, Throwable cause)
ModuleException with the specified message and
exception cause.message - The associated message.cause - The cause of this exception.public ModuleException(Throwable cause)
ModuleException with the specified exception cause.cause - The cause of this exception.public static ModuleException launderThrowable(Throwable cause)
RuntimeException
Error
ModuleException
Throwable in a ModuleException
Copyright © 2015 JBoss by Red Hat. All rights reserved.