Package org.checkerframework.javacutil
Class UserError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.checkerframework.javacutil.UserError
-
- All Implemented Interfaces:
java.io.Serializable
public class UserError extends java.lang.RuntimeException
Exception type indicating a mistake by an end user in using the Checker Framework, such as incorrect command-line arguments.To indicate a bug in the framework, use
BugInCF
. To indicate a bug in a checker implementation, useTypeSystemError
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserError(java.lang.String message)
Constructs a new CheckerError with the specified detail message.UserError(java.lang.String fmt, @Nullable java.lang.Object... args)
Constructs a new CheckerError with a detail message composed from the given arguments.
-
-
-
Constructor Detail
-
UserError
public UserError(java.lang.String message)
Constructs a new CheckerError with the specified detail message.- Parameters:
message
- the detail message
-
UserError
@FormatMethod public UserError(java.lang.String fmt, @Nullable java.lang.Object... args)
Constructs a new CheckerError with a detail message composed from the given arguments.- Parameters:
fmt
- the format stringargs
- the arguments for the format string
-
-