Package org.jdbi.v3.core.statement
Class StatementExceptions
java.lang.Object
org.jdbi.v3.core.statement.StatementExceptions
- All Implemented Interfaces:
- JdbiConfig<StatementExceptions>
Configuration for 
StatementException and subclasses behavior.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumControl exception message generation.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns a copy of this configuration object.intReturns the limit hint to use to shorten strings.Returns the statement exception message rendering strategy.setLengthLimit(int lengthLimit) Set a hint on how long you'd like to shorten various variable-length strings to.setMessageRendering(StatementExceptions.MessageRendering messageRendering) Configure exception statement message generation.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.config.JdbiConfigsetRegistry
- 
Constructor Details- 
StatementExceptionspublic StatementExceptions()
 
- 
- 
Method Details- 
getLengthLimitpublic int getLengthLimit()Returns the limit hint to use to shorten strings.- Returns:
- the limit hint to use to shorten strings.
 
- 
setLengthLimitSet a hint on how long you'd like to shorten various variable-length strings to.- Parameters:
- lengthLimit- the limit hint.
- Returns:
- this
 
- 
getMessageRenderingReturns the statement exception message rendering strategy.- Returns:
- the statement exception message rendering strategy.
 
- 
setMessageRenderingpublic StatementExceptions setMessageRendering(StatementExceptions.MessageRendering messageRendering) Configure exception statement message generation.- Parameters:
- messageRendering- the message rendering strategy to use
- Returns:
- this
 
- 
createCopyDescription copied from interface:JdbiConfigReturns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
- createCopyin interface- JdbiConfig<StatementExceptions>
- Returns:
- a copy of this configuration object.
 
 
-