@Beta public class StatementExceptions extends Object implements JdbiConfig<StatementExceptions>
StatementException and subclasses behavior.| Modifier and Type | Class and Description |
|---|---|
static class |
StatementExceptions.MessageRendering
Control exception message generation.
|
| Constructor and Description |
|---|
StatementExceptions() |
| Modifier and Type | Method and Description |
|---|---|
StatementExceptions |
createCopy()
Returns a copy of this configuration object.
|
int |
getLengthLimit() |
StatementExceptions.MessageRendering |
getMessageRendering() |
protected static String |
limit(String s,
int len) |
StatementExceptions |
setLengthLimit(int lengthLimit)
Set a hint on how long you'd like to shorten various variable-length strings to.
|
StatementExceptions |
setMessageRendering(StatementExceptions.MessageRendering messageRendering)
Configure exception statement message generation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetRegistrypublic StatementExceptions createCopy()
JdbiConfigcreateCopy in interface JdbiConfig<StatementExceptions>public int getLengthLimit()
public StatementExceptions.MessageRendering getMessageRendering()
public StatementExceptions setLengthLimit(int lengthLimit)
lengthLimit - the limit hintpublic StatementExceptions setMessageRendering(StatementExceptions.MessageRendering messageRendering)
messageRendering - the message rendering strategy to useCopyright © 2019. All rights reserved.