Package eu.simuline.octave.exception
Class OctaveClassCastException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- eu.simuline.octave.exception.OctaveException
-
- eu.simuline.octave.exception.OctaveRecoverableException
-
- eu.simuline.octave.exception.OctaveClassCastException
-
- All Implemented Interfaces:
Serializable
public final class OctaveClassCastException extends OctaveRecoverableException
Exception thrown when a cast fails inside JavaOctave.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Class<? extends OctaveObject>
castClass
private OctaveObject
octaveObject
-
Constructor Summary
Constructors Constructor Description OctaveClassCastException(ClassCastException cause, OctaveObject octaveObject, Class<? extends OctaveObject> castClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends OctaveObject>
getCastClass()
String
getMessage()
OctaveObject
getOctaveObject()
-
Methods inherited from class eu.simuline.octave.exception.OctaveException
isDestroyed, setDestroyed
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
octaveObject
private final OctaveObject octaveObject
-
castClass
private final Class<? extends OctaveObject> castClass
-
-
Constructor Detail
-
OctaveClassCastException
public OctaveClassCastException(ClassCastException cause, OctaveObject octaveObject, Class<? extends OctaveObject> castClass)
- Parameters:
cause
- ClassCastException that we are rethrowingoctaveObject
- OctaveObject that couldn't be castedcastClass
- The class octaveObject couldn't be casted to
-
-
Method Detail
-
getOctaveObject
public OctaveObject getOctaveObject()
- Returns:
- the OctaveObject that couldn't be casted
-
getCastClass
public Class<? extends OctaveObject> getCastClass()
- Returns:
- the class octaveObject couldn't be casted to
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-