Package io.ebean.text
Class TextException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.ebean.text.TextException
-
- All Implemented Interfaces:
Serializable
public class TextException extends RuntimeException
An exception occurred typically in processing CSV, JSON or XML.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TextException(Exception e)
Construct with a cause.TextException(String msg)
Construct with an error message.TextException(String msg, Exception e)
Construct with a message and cause.TextException(String message, String text)
Constructor for a detailed exception.TextException(String message, String text, Exception cause)
Constructor for a detailed exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getText()
Return the text, that caused the error.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TextException
public TextException(String msg)
Construct with an error message.
-
TextException
public TextException(String msg, Exception e)
Construct with a message and cause.
-
TextException
public TextException(Exception e)
Construct with a cause.
-
TextException
public TextException(String message, String text, Exception cause)
Constructor for a detailed exception.- Parameters:
message
- the message. The placeholder {} will be replaced bytext
text
- the fault text.cause
- the case
-
TextException
public TextException(String message, String text)
Constructor for a detailed exception.- Parameters:
message
- the message. The placeholder {} will be replaced bytext
text
- the fault text.
-
-