java.lang.Objectjava.lang.Throwable
java.lang.Exception
ucot.model.AnalyzeModelException
ucot.model.NoSuchParentException
public class NoSuchParentException
Error which is thrown if no entity of given name is found.
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 |
---|
private static final long serialVersionUID
java.lang.String entityName
Constructor Detail |
---|
public NoSuchParentException(java.lang.String entityName)
Constructs NoSuchParentException
with
entity name that is missing.
entityName
- The name of the entity that is not found.public NoSuchParentException(java.lang.String entityName, java.lang.String message)
Constructs NoSuchParentException
with
entity name that is missing and message.
entityName
- The name of the entity that is not found.message
- The message.public NoSuchParentException(java.lang.String entityName, java.lang.Throwable cause)
Constructs NoSuchParentException
with
entity name that is missing and the cause.
entityName
- The name of the entity that is not found.cause
- The cause.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.
entityName
- The name of the entity that is not found.message
- The message.cause
- The cause.Method Detail |
---|
protected static java.lang.String buildMessage(java.lang.String entityName)
Builds message for the error. Message looks like this:
No such entity called 'entityName'.
entityName
- The entity name used in the error.