Package org.checkerframework.javacutil
Class BugInCF
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.checkerframework.javacutil.BugInCF
- All Implemented Interfaces:
- Serializable
Exception type indicating a bug in the framework.
 
To indicate a bug in a checker implementation, use TypeSystemError. To indicate that
 an end user made a mistake, use UserError.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new BugInCF with the specified detail message and cause.Constructs a new BugInCF with the specified cause.Constructs a new BugInCF with the specified detail message and no cause (use this at the root cause).Constructs a new BugInCF with a detail message composed from the given arguments, and with no cause (use the current callstack as the root cause).Constructs a new BugInCF with the specified detail message and cause.Constructs a new BugInCF with the specified cause.Constructs a new BugInCF with the specified cause and with a detail message composed from the given arguments.
- 
Method SummaryModifier and TypeMethodDescriptionstatic BugInCFaddLocation(Tree location, Throwable throwable) Adds the location tothrowable.Return the tree at which to report the exception.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
BugInCFConstructs a new BugInCF with the specified detail message and no cause (use this at the root cause).- Parameters:
- message- the detail message
 
- 
BugInCFConstructs a new BugInCF with a detail message composed from the given arguments, and with no cause (use the current callstack as the root cause).- Parameters:
- fmt- the format string
- args- the arguments for the format string
 
- 
BugInCFConstructs a new BugInCF with the specified cause.- Parameters:
- cause- the cause; its detail message will be used and must be non-null
 
- 
BugInCFConstructs a new BugInCF with the specified cause.- Parameters:
- location- where to report the bug
- cause- the cause; its detail message will be used and must be non-null
 
- 
BugInCFConstructs a new BugInCF with the specified cause and with a detail message composed from the given arguments.- Parameters:
- cause- the cause
- fmt- the format string
- args- the arguments for the format string
 
- 
BugInCFConstructs a new BugInCF with the specified detail message and cause.- Parameters:
- message- the detail message
- cause- the cause
 
- 
BugInCFConstructs a new BugInCF with the specified detail message and cause.- Parameters:
- location- where to report the bug
- message- the detail message
- cause- the cause
 
 
- 
- 
Method Details- 
getLocationReturn the tree at which to report the exception.- Returns:
- the tree at which to report the exception
 
- 
addLocationAdds the location tothrowable. Ifthrowableis aBugInCFthat does not have a location, then its location is set tolocation.If throwableis not aBugInCF, then aBugInCFis created withlocationand causethrowable.- Parameters:
- location- the location at which to report this bug
- throwable- a throwable whose location is set to- locationif it does not already have a location
- Returns:
- throwableif its a- BugInCFotherwise a new- BugInCFobject
 
 
-