be.ac.vub.cocompose.lang
Class ModelElementException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bybe.ac.vub.cocompose.lang.ModelElementException
All Implemented Interfaces:
Serializable

public class ModelElementException
extends Exception

Exceptions that have a CoCompose language element as their subject.

Since:
0.2.0
Version:
0.2.0, 09/01/2003
Author:
Dennis Wagelaar
See Also:
Serialized Form

Field Summary
static int ERROR
           
static int INFO
           
static int WARNING
           
 
Constructor Summary
ModelElementException(Exception exception)
          Creates a ModelElementException.
ModelElementException(Exception exception, ModelElement subject)
          Creates a ModelElementException.
ModelElementException(Exception exception, ModelElement subject, int type)
          Creates a ModelElementException.
ModelElementException(ModelElementException exception)
          Creates a ModelElementException.
ModelElementException(String message)
          Creates a ModelElementException.
ModelElementException(String message, ModelElement subject)
          Creates a ModelElementException.
ModelElementException(String message, ModelElement subject, int type)
          Creates a ModelElementException.
 
Method Summary
 ModelElement getSubject()
          Gets the exception subject element.
 int getType()
          Gets the exception type (error, warning, info)
 void setSubject(ModelElement subject)
          Sets the exception subject.
 void setType(int type)
          Sets the exception type (error, warning, info).
 
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

ERROR

public static final int ERROR
See Also:
Constant Field Values

WARNING

public static final int WARNING
See Also:
Constant Field Values

INFO

public static final int INFO
See Also:
Constant Field Values
Constructor Detail

ModelElementException

public ModelElementException(String message,
                             ModelElement subject,
                             int type)
Creates a ModelElementException.

Parameters:
message - the exception message
subject - the subject of the exception
type - the exception type (error, warning, info)

ModelElementException

public ModelElementException(String message,
                             ModelElement subject)
Creates a ModelElementException.

Parameters:
message - the exception message
subject - the subject of the exception

ModelElementException

public ModelElementException(String message)
Creates a ModelElementException.

Parameters:
message - the exception message

ModelElementException

public ModelElementException(Exception exception)
Creates a ModelElementException.

Parameters:
exception - embedded exception to pass on

ModelElementException

public ModelElementException(Exception exception,
                             ModelElement subject)
Creates a ModelElementException.

Parameters:
exception - embedded exception to pass on
subject - the subject of the exception

ModelElementException

public ModelElementException(Exception exception,
                             ModelElement subject,
                             int type)
Creates a ModelElementException.

Parameters:
exception - embedded exception to pass on
subject - the subject of the exception
type - the exception type (error, warning, info)

ModelElementException

public ModelElementException(ModelElementException exception)
Creates a ModelElementException.

Parameters:
exception - embedded exception to pass on
Method Detail

getSubject

public ModelElement getSubject()
Gets the exception subject element.

Returns:
the exception subject.

setSubject

public void setSubject(ModelElement subject)
Sets the exception subject.

Parameters:
subject - the exception subject.

getType

public int getType()
Gets the exception type (error, warning, info)

Returns:
the exception type.

setType

public void setType(int type)
Sets the exception type (error, warning, info).

Parameters:
type - the exception type.