Package org.jdbi.v3.core.statement
Enum StatementExceptions.MessageRendering
java.lang.Object
java.lang.Enum<StatementExceptions.MessageRendering>
org.jdbi.v3.core.statement.StatementExceptions.MessageRendering
- All Implemented Interfaces:
Serializable,Comparable<StatementExceptions.MessageRendering>,java.lang.constant.Constable,Function<StatementException,String>
- Enclosing class:
- StatementExceptions
public static enum StatementExceptions.MessageRendering
extends Enum<StatementExceptions.MessageRendering>
implements Function<StatementException,String>
Control exception message generation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInclude all detail.Do not include SQL or parameter information.Include bound parameters but not the SQL.Include a length-limited SQL statement and parameter information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(StatementException exc) protected abstract Stringrender(StatementException exc, StatementContext ctx) Returns the enum constant of this type with the specified name.static StatementExceptions.MessageRendering[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Do not include SQL or parameter information. -
PARAMETERS
Include bound parameters but not the SQL. -
SHORT_STATEMENT
Include a length-limited SQL statement and parameter information. -
DETAIL
Include all detail.
-
-
Constructor Details
-
MessageRendering
private MessageRendering()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
apply
- Specified by:
applyin interfaceFunction<StatementException,String>
-
render
-