Package com.elvishew.xlog.formatter
Class FormatException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.elvishew.xlog.formatter.FormatException
-
- All Implemented Interfaces:
java.io.Serializable
public class FormatException extends java.lang.RuntimeExceptionThrown to indicate that the format of the data is something wrong.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormatException()Constructs aFormatExceptionwith no detail message.FormatException(java.lang.String s)Constructs aFormatExceptionwith the specified detail message.FormatException(java.lang.String message, java.lang.Throwable cause)Constructs a new exception with the specified detail message and cause.FormatException(java.lang.Throwable cause)Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
-
-
-
Constructor Detail
-
FormatException
public FormatException()
Constructs aFormatExceptionwith no detail message.
-
FormatException
public FormatException(java.lang.String s)
Constructs aFormatExceptionwith the specified detail message.- Parameters:
s- the detail message.
-
FormatException
public FormatException(java.lang.String message, java.lang.Throwable cause)Constructs a new exception with the specified detail message and cause.Note that the detail message associated with
causeis not automatically incorporated in this exception's detail message.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
FormatException
public FormatException(java.lang.Throwable cause)
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for exceptions that are little more than wrappers for other throwables (for example,PrivilegedActionException).- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-