org.jomc.model
Class ModelException

Package class diagram package ModelException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jomc.model.ModelException
All Implemented Interfaces:
Serializable

public class ModelException
extends Exception

Gets thrown for invalid model objects.

Version:
$Id: ModelException.java 509 2009-09-21 13:54:49Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Nested Class Summary
static class ModelException.Detail
          ModelException detail.
 
Field Summary
private  List<ModelException.Detail> details
          Details of the instance.
private static long serialVersionUID
          Serial version UID for compatibility with 1.0.x object streams.
 
Constructor Summary
ModelException()
          Creates a new ModelException instance.
ModelException(String message)
          Creates a new ModelException instance taking a message.
ModelException(String message, Throwable t)
          Creates a new ModelException instance taking a message and a causing exception.
ModelException(Throwable t)
          Creates a new ModelException instance taking a causing exception.
 
Method Summary
 List<ModelException.Detail> getDetails()
          Gets the details of the instance.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version UID for compatibility with 1.0.x object streams.

See Also:
Constant Field Values

details

private final List<ModelException.Detail> details
Details of the instance.

Constructor Detail

ModelException

public ModelException()
Creates a new ModelException instance.


ModelException

public ModelException(String message)
Creates a new ModelException instance taking a message.

Parameters:
message - The message of the exception.

ModelException

public ModelException(Throwable t)
Creates a new ModelException instance taking a causing exception.

Parameters:
t - The causing exception.

ModelException

public ModelException(String message,
                      Throwable t)
Creates a new ModelException instance taking a message and a causing exception.

Parameters:
message - The message of the exception.
t - The causing exception.
Method Detail

getDetails

public List<ModelException.Detail> getDetails()
Gets the details of the instance.

Returns:
The details of the instance.


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.