Lombok - v0.10.8

lombok.core
Class AnnotationValues.AnnotationValueDecodeFail

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by lombok.core.AnnotationValues.AnnotationValueDecodeFail
All Implemented Interfaces:
Serializable
Enclosing class:
AnnotationValues<A extends Annotation>

public static class AnnotationValues.AnnotationValueDecodeFail
extends RuntimeException

Thrown on the fly if an actual annotation instance procured via the AnnotationValues.getInstance() method is queried for a method for which this AnnotationValues instance either doesn't have a guess or can't manage to fit the guess into the required data type.

See Also:
Serialized Form

Field Summary
 int idx
          The index into an array initializer (e.g.
 AnnotationValues.AnnotationValue owner
          The AnnotationValue object that goes with the annotation method for which the failure occurred.
 
Constructor Summary
AnnotationValues.AnnotationValueDecodeFail(AnnotationValues.AnnotationValue owner, String msg, int idx)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

idx

public final int idx
The index into an array initializer (e.g. if the second value in an array initializer is an integer constant expression like '5+SomeOtherClass.CONSTANT', this exception will be thrown, and you'll get a '1' for idx.


owner

public final AnnotationValues.AnnotationValue owner
The AnnotationValue object that goes with the annotation method for which the failure occurred.

Constructor Detail

AnnotationValues.AnnotationValueDecodeFail

public AnnotationValues.AnnotationValueDecodeFail(AnnotationValues.AnnotationValue owner,
                                                  String msg,
                                                  int idx)

Lombok - v0.10.8

Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.