Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.exception
Class NotLiteralizableException

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
                  extended by org.jboss.errai.codegen.exception.NotLiteralizableException
All Implemented Interfaces:
Serializable

public class NotLiteralizableException
extends GenerationException

Thrown when a LiteralValue is requested for an object that cannot be represented as a LiteralValue.

Author:
Jonathan Fuerth
See Also:
Serialized Form

Constructor Summary
NotLiteralizableException(Object nonLiteralizableObject)
          Creates a new NotLiteralizableException that arose as a result of requesting a LiteralValue of the given object.
 
Method Summary
 Object getNonLiteralizableObject()
          Returns the object that could not be literalized.
 
Methods inherited from class org.jboss.errai.codegen.exception.GenerationException
appendFailureInfo, getMessage
 
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

NotLiteralizableException

public NotLiteralizableException(Object nonLiteralizableObject)
Creates a new NotLiteralizableException that arose as a result of requesting a LiteralValue of the given object.

Parameters:
nonLiteralizableObject - the object that is not literalizable.
Method Detail

getNonLiteralizableObject

public Object getNonLiteralizableObject()
Returns the object that could not be literalized.

Returns:
The object that could not be literalized.

Errai 3.0.1-SNAPSHOT

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