public abstract class AbstractException extends java.lang.Exception implements IIdentifiable
| Modifier and Type | Field and Description |
|---|---|
private int |
id |
static int |
ID_AMBIGUOUS
Defines an identifier for ambiguities.
|
static int |
ID_CANNOT_RESOLVE
Defines an identifier if something cannot be resolved.
|
static int |
ID_INTERNAL
Defines an identifier for implementation problems.
|
static int |
ID_SEMANTIC
Defines an identifier for semantic problems.
|
static int |
ID_WARNING
Indicates a warning to be filtered out.
|
| Constructor and Description |
|---|
AbstractException(AbstractException cause)
Creates a known exception as cause.
|
AbstractException(java.lang.String message,
int id)
Creates a buildlang exception based on a given
message. |
AbstractException(java.lang.String message,
java.lang.Throwable cause,
int id)
Creates a expression exception from a message and an optional cause.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Returns the identifier.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessagepublic static final int ID_INTERNAL
public static final int ID_SEMANTIC
public static final int ID_CANNOT_RESOLVE
public static final int ID_AMBIGUOUS
public static final int ID_WARNING
private int id
public AbstractException(java.lang.String message,
int id)
message.message - the message of the exceptionid - the identifier (see constants above)public AbstractException(java.lang.String message,
java.lang.Throwable cause,
int id)
message - the message of the exceptioncause - the originally causing exceptionid - the identifier (see constants above)public AbstractException(AbstractException cause)
cause is taken over
as identification.cause - the causing exceptionpublic int getId()
getId in interface IIdentifiableCopyright © 2009 - 2018 SSE. All Rights Reserved.