public final class ParserException extends OmakaseException
Constructor and Description |
---|
ParserException(Source source,
String message)
Constructs a new instance of a
ParserException . |
ParserException(Source source,
String message,
Object... args)
Constructs a new instance of a
ParserException with the given message and message parameters. |
ParserException(Syntax cause,
String message)
Constructs a new instance of a
ParserException for an error caused by the given Syntax unit. |
ParserException(Syntax cause,
String message,
Object... args)
Constructs a new instance of a
ParserException for an error caused by the given Syntax unit. |
ParserException(Throwable cause)
Constructs a new instance of a
ParserException from the given cause. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParserException(Source source, String message, Object... args)
ParserException
with the given message and message parameters.source
- The source containing the source of the error.message
- The error message.args
- The String.format(String, Object...)
parameters.public ParserException(Syntax cause, String message)
ParserException
for an error caused by the given Syntax
unit.
This is normally used by Grammar
s.
cause
- The syntax unit that caused the problem.message
- The error message.public ParserException(Syntax cause, String message, Object... args)
ParserException
for an error caused by the given Syntax
unit.cause
- The syntax unit that caused the problem.message
- The error message.args
- The String.format(String, Object...)
parameters.public ParserException(Source source, String message)
ParserException
.source
- The source containing the source of the error.message
- The error message.public ParserException(Throwable cause)
ParserException
from the given cause. This is usually used to wrap around external
(to Omakase) checked exceptions from custom Grammar
objects.cause
- The cause of the exception.Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.