i3.dragos.exception
Class SchemaCheckException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by i3.dragos.exception.DragosException
              extended by i3.dragos.exception.SchemaCheckException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InheritanceCycleException

public class SchemaCheckException
extends DragosException

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

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

Constructor Summary
SchemaCheckException(java.lang.String message)
          Constructs a new exception with the given message.
SchemaCheckException(java.lang.String message, GraphEntityClass problem)
          Constructs a new exception with the given message.
SchemaCheckException(java.lang.String message, java.lang.Throwable throwable)
          Constructs a new exception with the given message which is wrapped around an exception.
SchemaCheckException(java.lang.String message, java.lang.Throwable throwable, GraphEntityClass problem)
          Constructs a new exception with the given message which is wrapped around an exception.
 
Method Summary
 GraphEntityClass getProblem()
          Returns the GraphEntityClass of the entity class 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

SchemaCheckException

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

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

SchemaCheckException

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

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

SchemaCheckException

public SchemaCheckException(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.

SchemaCheckException

public SchemaCheckException(java.lang.String message,
                            java.lang.Throwable throwable,
                            GraphEntityClass 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 GraphEntityClass of the entity class that failed the check.
Method Detail

getProblem

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

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


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