Avoid eager stringification of message
This commit is contained in:
parent
a6c4baa1b6
commit
f90cf5e508
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ public class CommandSyntaxException extends Exception {
|
|||
private final int cursor;
|
||||
|
||||
public CommandSyntaxException(final CommandExceptionType type, final Message message) {
|
||||
super(message.getString(), null, ENABLE_COMMAND_STACK_TRACES, ENABLE_COMMAND_STACK_TRACES);
|
||||
super(null, null, ENABLE_COMMAND_STACK_TRACES, ENABLE_COMMAND_STACK_TRACES);
|
||||
this.type = type;
|
||||
this.message = message;
|
||||
this.input = null;
|
||||
|
@ -24,7 +24,7 @@ public class CommandSyntaxException extends Exception {
|
|||
}
|
||||
|
||||
public CommandSyntaxException(final CommandExceptionType type, final Message message, final String input, final int cursor) {
|
||||
super(message.getString(), null, ENABLE_COMMAND_STACK_TRACES, ENABLE_COMMAND_STACK_TRACES);
|
||||
super(null, null, ENABLE_COMMAND_STACK_TRACES, ENABLE_COMMAND_STACK_TRACES);
|
||||
this.type = type;
|
||||
this.message = message;
|
||||
this.input = input;
|
||||
|
|
Loading…
Reference in a new issue