Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.exception
Class GenerationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jboss.errai.codegen.exception.GenerationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CyclicalObjectGraphException, InvalidExpressionException, InvalidTypeException, NotLiteralizableException, OutOfScopeException, TypeNotIterableException, UndefinedConstructorException, UndefinedFieldException, UndefinedMethodException, UnproxyableClassException

public class GenerationException
extends RuntimeException

Base class for failures in the Errai code generation module.

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.

Author:
Mike Brock, Christian Sadilek , Jonathan Fuerth
See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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
 

Constructor Detail

GenerationException

public GenerationException()
Creates a GenerationException with no message and no cause.


GenerationException

public GenerationException(String msg)
Creates a GenerationException with the given message and no cause.


GenerationException

public GenerationException(Throwable t)
Creates a GenerationException with no message and the given cause.


GenerationException

public GenerationException(String message,
                           Throwable cause)
Creates a GenerationException with the given message and the given cause.

Method Detail

appendFailureInfo

public void appendFailureInfo(String info)
Adds the given message to this exception. All additional failure information added this way is returned by getMessage().

Parameters:
info - The additional information to add.

getMessage

public String getMessage()
Returns this exception's message (as given in the constructor) plus all of the additional failure information, separated by newlines.

Overrides:
getMessage in class Throwable
See Also:
appendFailureInfo(String)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.