Class OperationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.openrefine.operations.exceptions.OperationException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DuplicateColumnException
,IOOperationException
,MissingColumnException
,ParsingOperationException
public class OperationException extends Exception
Exception thrown by an operation when it fails to apply.- Author:
- Antonin Delpeuch
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OperationException(String code, String message)
OperationException(String code, String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
A code characterizing the type of error encountered.String
getMessage()
A human-readable message describing the error.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
code
protected final String code
-
-
Method Detail
-
getCode
public String getCode()
A code characterizing the type of error encountered.- Returns:
-
getMessage
public String getMessage()
A human-readable message describing the error.- Overrides:
getMessage
in classThrowable
-
-