Package net.sf.okapi.common.exceptions
Class OkapiUnexpectedResourceTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.sf.okapi.common.exceptions.OkapiException
-
- net.sf.okapi.common.exceptions.OkapiUnexpectedResourceTypeException
-
- All Implemented Interfaces:
Serializable
public class OkapiUnexpectedResourceTypeException extends OkapiException
Signals that a method has returned a resource in an unexpected type. Usually this is coming from requesting a specific type of resource from an Event that carries another type of resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OkapiUnexpectedResourceTypeException()
Creates an empty new OkapiEditorCreationException object.OkapiUnexpectedResourceTypeException(String message)
Creates a new OkapiEditorCreationException object with a given message.OkapiUnexpectedResourceTypeException(String message, Throwable cause)
Creates a new OkapiEditorCreationException object with a given message and a given parent exception cause.OkapiUnexpectedResourceTypeException(Throwable cause)
Creates a new OkapiEditorCreationException object with a given parent exception cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
OkapiUnexpectedResourceTypeException
public OkapiUnexpectedResourceTypeException()
Creates an empty new OkapiEditorCreationException object.
-
OkapiUnexpectedResourceTypeException
public OkapiUnexpectedResourceTypeException(String message)
Creates a new OkapiEditorCreationException object with a given message.- Parameters:
message
- text of the message.
-
OkapiUnexpectedResourceTypeException
public OkapiUnexpectedResourceTypeException(Throwable cause)
Creates a new OkapiEditorCreationException object with a given parent exception cause.- Parameters:
cause
- the parent exception cause.
-
-