Package ome.formats.model
Class ModelException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ome.formats.model.ModelException
-
- All Implemented Interfaces:
java.io.Serializable
public class ModelException extends java.lang.RuntimeException
Exception thrown when there is an object instantiation error or error processing the model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ModelException(java.lang.String message)
Default constructor.ModelException(java.lang.String message, java.lang.Class<? extends IObject> klass, java.lang.Exception exception)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends IObject>
getFailureClass()
Returns the class that was used during a failed instantiation.java.lang.String
toString()
-
-
-
Constructor Detail
-
ModelException
public ModelException(java.lang.String message)
Default constructor.- Parameters:
message
- Error message.
-
ModelException
public ModelException(java.lang.String message, java.lang.Class<? extends IObject> klass, java.lang.Exception exception)
Default constructor.- Parameters:
message
- Error message.klass
- Failed instantiation class.exception
- Upstream exception.
-
-
Method Detail
-
getFailureClass
public java.lang.Class<? extends IObject> getFailureClass()
Returns the class that was used during a failed instantiation.- Returns:
- See above.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-