public class GenerationException extends RuntimeException
Note to users of this class: instead of throwing an instance of this base class, please consider reusing one of its subtypes, or create a new subtype if none of the existing ones are suitable.
Constructor and Description |
---|
GenerationException()
Creates a GenerationException with no message and no cause.
|
GenerationException(String msg)
Creates a GenerationException with the given message and no cause.
|
GenerationException(String message,
Throwable cause)
Creates a GenerationException with the given message and the given cause.
|
GenerationException(Throwable t)
Creates a GenerationException with no message and the given cause.
|
Modifier and Type | Method and Description |
---|---|
void |
appendFailureInfo(String info)
Adds the given message to this exception.
|
String |
getMessage()
Returns this exception's message (as given in the constructor) plus all of
the additional failure information, separated by newlines.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public GenerationException()
public GenerationException(String msg)
public GenerationException(Throwable t)
public void appendFailureInfo(String info)
getMessage()
.info
- The additional information to add.public String getMessage()
getMessage
in class Throwable
appendFailureInfo(String)
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.