i3.dragos.exception
Class GraphPoolCheckException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by i3.dragos.exception.DragosException
              extended by i3.dragos.exception.GraphPoolCheckException
All Implemented Interfaces:
java.io.Serializable

public class GraphPoolCheckException
extends DragosException

A SchemaCheckException is thrown when the GraphPoolChecker finds an inconsistency. Keep in mind that the entity identified as "problem" may not be the only possible source of the error (e.g. in cases of wrong cardinalities), but merely the entity where the underlying inconsistency was detected first.

Author:
Thorsten Hermes <thermes@i3.informatik.rwth-aachen.de>
See Also:
Serialized Form

Constructor Summary
GraphPoolCheckException(java.lang.String message)
          Constructs a new exception with the given message.
GraphPoolCheckException(java.lang.String message, GraphEntity problem)
          Constructs a new exception with the given message.
GraphPoolCheckException(java.lang.String message, java.lang.Throwable throwable)
          Constructs a new exception with the given message which is wrapped around an exception.
GraphPoolCheckException(java.lang.String message, java.lang.Throwable throwable, GraphEntity problem)
          Constructs a new exception with the given message which is wrapped around an exception.
 
Method Summary
 GraphEntity getProblem()
          Returns the GraphEntity of the entity that failed the check (may be null).
 
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
 

Constructor Detail

GraphPoolCheckException

public GraphPoolCheckException(java.lang.String message)
Constructs a new exception with the given message.

Parameters:
message - A message describing the reason of the exception.

GraphPoolCheckException

public GraphPoolCheckException(java.lang.String message,
                               GraphEntity problem)
Constructs a new exception with the given message.

Parameters:
message - A message describing the reason of the exception.
problem - the GraphEntity of the entity that failed the check.

GraphPoolCheckException

public GraphPoolCheckException(java.lang.String message,
                               java.lang.Throwable throwable)
Constructs a new exception with the given message which is wrapped around an exception.

Parameters:
message - A message describing the reason of the exception.
throwable - The exception.

GraphPoolCheckException

public GraphPoolCheckException(java.lang.String message,
                               java.lang.Throwable throwable,
                               GraphEntity problem)
Constructs a new exception with the given message which is wrapped around an exception.

Parameters:
message - A message describing the reason of the exception.
throwable - The exception.
problem - the GraphEntity of the entity that failed the check.
Method Detail

getProblem

public GraphEntity getProblem()
Returns the GraphEntity of the entity that failed the check (may be null).

Returns:
the GraphEntity of the entity that failed the check (may be null).


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.