public final class ScannerException
extends java.lang.RuntimeException
ScannerException
is thrown by a Scanner
on errors.Constructor and Description |
---|
ScannerException()
Constructs a new
ScannerException with null as its detail message. |
ScannerException(java.lang.String message)
Constructs a new
ScannerException with message as its detail message. |
ScannerException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new
ScannerException with message as its detail message and cause as its cause. |
ScannerException(java.lang.String message,
java.lang.Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new
ScannerException with message as its detail message, cause as its cause, suppression enabled or disabled and writable stack trace enabled or disabled. |
ScannerException(java.lang.Throwable cause)
Constructs a new
ScannerException with {@code cause == null ? |
public ScannerException()
ScannerException
with null
as its detail message.
The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(Throwable)
.
public ScannerException(java.lang.String message)
ScannerException
with message
as its detail message.
The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(Throwable)
.
message
- the detail message, which may be null
public ScannerException(java.lang.String message, java.lang.Throwable cause)
ScannerException
with message
as its detail message and cause
as its cause.message
- the detail message, which may be null
cause
- the cause, which may be null
public ScannerException(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)
ScannerException
with message
as its detail message, cause
as its cause, suppression enabled or disabled and writable stack trace enabled or disabled.message
- the detail message, which may be null
cause
- the cause, which may be null
enableSuppression
- whether or not suppression is enabled or disabledwritableStackTrace
- whether or not the stack trace should be writablepublic ScannerException(java.lang.Throwable cause)
ScannerException
with cause == null ? null : cause.toString()
as its detail message and cause
as its cause.cause
- the cause, which may be null