Back to index

wims  3.65+svn20090927
Public Member Functions
fr.ove.openmath.exceptions.ControlException Class Reference

Specific Control exception to specialize treatment of errors according to the symbol that thrown it. More...

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

List of all members.

Public Member Functions

 ControlException (String symbol)
 The constructor.
 ControlException (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.

Detailed Description

Specific Control exception to specialize treatment of errors according to the symbol that thrown it.

Author:
1999 DIRAT Laurent
Version:
1.0 28/05/99

Definition at line 40 of file ControlException.java.


Constructor & Destructor Documentation

The constructor.

Parameters:
symbolThe symbol which thrown the instance.

Definition at line 45 of file ControlException.java.

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

The constructor.

Parameters:
symbolthe symbol which thrown the instance.
detailsthe details of the exception

Definition at line 54 of file ControlException.java.

                                                           {
        super(symbol, details);

        if (symbol.equals("unhandledSymbol"))
            setErrorMessage("Symbol Unhandled by the Application");
        else if (symbol.equals("unknownSymbol"))
            setErrorMessage("The Symbol does not Exist in the Specified CD");
        else if (symbol.equals("unknownCD"))
            setErrorMessage("The Specified CD is not Handled by the Application");
        else if (symbol.equals("algorithm"))
            setErrorMessage("Operation not or Partially Implemented");
        else if (symbol.equals("limitation"))
            setErrorMessage("Implementation Limitation");
        else if (symbol.equals("unexpected"))
            setErrorMessage("Unexpected Problem");
        else if (symbol.equals("system"))
            setErrorMessage("System Error");
        else if (symbol.equals("terminated"))
            setErrorMessage("Communication Terminted. Server Shutted Down");
        else if (symbol.equals("commandOk"))
            setErrorMessage("Command Successfully Executed");
        else if (symbol.equals("encodingError"))
            setErrorMessage("Lexical and/or Syntactic Error Detected");
        else if (symbol.equals("semanticError"))
            setErrorMessage("Semantic Error Detected");
    }

Here is the call graph for this function:


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;
    }
void fr.ove.openmath.exceptions.ErrorMessageException.setDetails ( Object  details) [inline, inherited]

Sets the details of the exception.

Definition at line 103 of file ErrorMessageException.java.

                                           {
        this.details = details;
    }
void fr.ove.openmath.exceptions.ErrorMessageException.setErrorMessage ( String  errorMessage) [inline, inherited]

Sets the error message.

Definition at line 125 of file ErrorMessageException.java.

Here is the caller graph for this function:

void fr.ove.openmath.exceptions.ErrorMessageException.setSymbol ( String  symbol) [inline, inherited]

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;
    }

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