ucot.model
Class NoSuchParentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ucot.model.AnalyzeModelException
              extended by ucot.model.NoSuchParentException
All Implemented Interfaces:
java.io.Serializable

public class NoSuchParentException
extends AnalyzeModelException

Error which is thrown if no entity of given name is found.

See Also:
Serialized Form

Field Summary
(package private)  java.lang.String entityName
          The name of the entity.
private static long serialVersionUID
           
 
Constructor Summary
NoSuchParentException(java.lang.String entityName)
           Constructs NoSuchParentException with entity name that is missing.
NoSuchParentException(java.lang.String entityName, java.lang.String message)
           Constructs NoSuchParentException with entity name that is missing and message.
NoSuchParentException(java.lang.String entityName, java.lang.String message, java.lang.Throwable cause)
           Constructs NoSuchParentException with entity name that is missing, message containing some explanation and the cause.
NoSuchParentException(java.lang.String entityName, java.lang.Throwable cause)
           Constructs NoSuchParentException with entity name that is missing and the cause.
 
Method Summary
protected static java.lang.String buildMessage(java.lang.String entityName)
          Builds message for the error.
 
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
See Also:
Constant Field Values

entityName

java.lang.String entityName
The name of the entity.

Constructor Detail

NoSuchParentException

public NoSuchParentException(java.lang.String entityName)

Constructs NoSuchParentException with entity name that is missing.

Parameters:
entityName - The name of the entity that is not found.

NoSuchParentException

public NoSuchParentException(java.lang.String entityName,
                             java.lang.String message)

Constructs NoSuchParentException with entity name that is missing and message.

Parameters:
entityName - The name of the entity that is not found.
message - The message.

NoSuchParentException

public NoSuchParentException(java.lang.String entityName,
                             java.lang.Throwable cause)

Constructs NoSuchParentException with entity name that is missing and the cause.

Parameters:
entityName - The name of the entity that is not found.
cause - The cause.

NoSuchParentException

public NoSuchParentException(java.lang.String entityName,
                             java.lang.String message,
                             java.lang.Throwable cause)

Constructs NoSuchParentException with entity name that is missing, message containing some explanation and the cause.

Parameters:
entityName - The name of the entity that is not found.
message - The message.
cause - The cause.
Method Detail

buildMessage

protected static java.lang.String buildMessage(java.lang.String entityName)

Builds message for the error. Message looks like this:


 No such entity called 'entityName'.
 

Parameters:
entityName - The entity name used in the error.
Returns:
The error message string.