ome.formats.model
Class ModelException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ome.formats.model.ModelException
All Implemented Interfaces:
Serializable

public class ModelException
extends RuntimeException

Exception thrown when there is an object instantiation error or error processing the model.

Author:
Chris Allan
See Also:
Serialized Form

Constructor Summary
ModelException(String message)
          Default constructor.
ModelException(String message, Class<? extends omero.model.IObject> klass, Exception exception)
          Default constructor.
 
Method Summary
 Class<? extends omero.model.IObject> getFailureClass()
          Returns the class that was used during a failed instantiation.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelException

public ModelException(String message)
Default constructor.

Parameters:
message - Error message.

ModelException

public ModelException(String message,
                      Class<? extends omero.model.IObject> klass,
                      Exception exception)
Default constructor.

Parameters:
message - Error message.
klass - Failed instantiation class.
exception - Upstream exception.
Method Detail

getFailureClass

public Class<? extends omero.model.IObject> getFailureClass()
Returns the class that was used during a failed instantiation.

Returns:
See above.

toString

public String toString()
Overrides:
toString in class Throwable


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.