Back to index

wims  3.65+svn20090927
Public Member Functions | Private Attributes
fr.ove.openmath.exceptions.ErrorMessageException Class Reference

An exception to subclass to alerts application of errors or to specialize the treatment of the symbol that causes the thrown of that kind of instance. More...

Inheritance diagram for fr.ove.openmath.exceptions.ErrorMessageException:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ErrorMessageException (String symbol)
 The constructor.
 ErrorMessageException (String symbol, Object details)
 The constructor.
String getSymbol ()
 Returns the symbols which throws the instance.
void setSymbol (String symbol)
 Sets the symbol which throws the instance.
Object getDetails ()
 Returns the details of the exception.
void setDetails (Object details)
 Sets the details of the exception.
void setThrowAgain (boolean throwAgain)
 Sets true if we've got to throw the exception.
boolean getThrowAgain ()
 Returns if we've got to throw the exception.
void setErrorMessage (String errorMessage)
 Sets the error message.
String getErrorMessage ()
 Returns the error message.

Private Attributes

String symbol
 The error symbol which cause this exception.
String errorMessage
 The error message.
Object details
 The details to send with the message.
boolean throwAgain = false
 Do we have to throw the exception again ?

Detailed Description

An exception to subclass to alerts application of errors or to specialize the treatment of the symbol that causes the thrown of that kind of instance.


This class must be subclassed (it is an abstract class) to set the adequat error message and the possible details according to the symbol.

Author:
1998 DIRAT Laurent
Version:
1.0 13/04/99

Definition at line 40 of file ErrorMessageException.java.


Constructor & Destructor Documentation

The constructor.

Parameters:
symbolThe symbol which throws the instance.

Definition at line 65 of file ErrorMessageException.java.

                                                {
        this(symbol, null);
    }
fr.ove.openmath.exceptions.ErrorMessageException.ErrorMessageException ( String  symbol,
Object  details 
) [inline]

The constructor.

Parameters:
symbolThe symbol which throws the instance.
detailsthe details of the exception

Definition at line 74 of file ErrorMessageException.java.

                                                                {
        this.symbol = symbol;
        this.details = details;
    }

Member Function Documentation

Returns the details of the exception.

Definition at line 96 of file ErrorMessageException.java.

                               {
        return details;
    }

Returns the error message.

Definition at line 132 of file ErrorMessageException.java.

                                    {
        return errorMessage;
    }

Returns the symbols which throws the instance.

Definition at line 82 of file ErrorMessageException.java.

                              {
        return symbol;
    }

Returns if we've got to throw the exception.

Definition at line 118 of file ErrorMessageException.java.

                                   {
        return throwAgain;
    }

Sets the details of the exception.

Definition at line 103 of file ErrorMessageException.java.

                                           {
        this.details = details;
    }

Sets the error message.

Definition at line 125 of file ErrorMessageException.java.

Here is the caller graph for this function:

Sets the symbol which throws the instance.

Definition at line 89 of file ErrorMessageException.java.

                                         {
        this.symbol = symbol;
    }

Sets true if we've got to throw the exception.


false otherwise.

Definition at line 111 of file ErrorMessageException.java.

                                                  {
        this.throwAgain = throwAgain;
    }

Member Data Documentation

The details to send with the message.

Definition at line 54 of file ErrorMessageException.java.

The error message.

Definition at line 49 of file ErrorMessageException.java.

The error symbol which cause this exception.

Definition at line 44 of file ErrorMessageException.java.

Do we have to throw the exception again ?

Definition at line 59 of file ErrorMessageException.java.


The documentation for this class was generated from the following file: