public class ModelException extends Exception
| Constructor and Description |
|---|
ModelException(String message)
Creates a model exception.
|
ModelException(String message,
Entity entity)
Creates a model exception.
|
ModelException(String message,
Entity entity,
Throwable cause)
Creates a model exception.
|
ModelException(String message,
SourceInfo sourceInfo)
Creates a model exception.
|
ModelException(String message,
SourceInfo sourceInfo,
Throwable cause)
Creates a model exception.
|
ModelException(String message,
Throwable cause)
Creates a model exception.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Entity> |
getEntities()
Gets the related entities.
If related to more than one entity. |
Entity |
getEntity()
Gets the (first) related entity.
|
String |
getMessage() |
SourceInfo |
getSourceInfo()
Gets the source info.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ModelException(String message, SourceInfo sourceInfo, Throwable cause)
message - the error messagesourceInfo - the source info, null if nonecause - the causepublic ModelException(String message, Entity entity, Throwable cause)
message - the error messageentity - the related entitycause - the causepublic ModelException(String message, Throwable cause)
message - the error messagecause - the causepublic ModelException(String message, SourceInfo sourceInfo)
message - the error messagesourceInfo - the source info, null if nonepublic ModelException(String message, Entity entity)
message - the error messageentity - the related entitypublic ModelException(String message)
message - the error messagepublic SourceInfo getSourceInfo()
public Entity getEntity()
public Set<Entity> getEntities()
public String getMessage()
getMessage in class ThrowableCopyright © 2016 Krake Softwaretechnik. All rights reserved.