public class UnsupportedFormatException extends Exception
Constructor and Description |
---|
UnsupportedFormatException(String format,
String[] supportedFormat)
Constructs an UnsupportedFormatException with the specified
detail message.
|
UnsupportedFormatException(String format,
String[] supportedFormat,
Throwable cause)
Construct a new UnsupportedFormatException with the specified
detail message and cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnsupportedFormatException(String format, String[] supportedFormat)
format
- the unsupported format, not nullsupportedFormat
- the supported formats, not nullpublic UnsupportedFormatException(String format, String[] supportedFormat, Throwable cause)
format
- the unsupported format, not nullsupportedFormat
- the supported formats, not null
This can later be retrieved by the Throwable.getMessage() method.cause
- the cause. This can be retrieved later by the
Throwable.getCause() method. (A null value is permitted, and indicates
that the cause is nonexistent or unknown.)Copyright © 2005–2023 The Apache Software Foundation. All rights reserved.