NumericException - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


NumericException

return the exception string of an event

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

NumericException(event)

Parameters

event

-

symbol; represents one of six numeric events

Description

• 

The NumericException(event) function returns the exception string associated with event.

Examples

NumericExceptiondivision_by_zero

numeric exception: division by zero

(1)

MyHandler := proc( f, ops, defVal )
    if NumericEventLocation = 'MyProc' then
        error NumericException( 'division_by_zero' );
      else
        NumericStatus( 'division_by_zero' = false );
        defVal;
    end if;
end proc:

NumericEventHandlerdivision_by_zero=MyHandler

division_by_zero=default

(2)

MyProc := proc(a,b) a/b; end proc:

1.0.

Float

(3)

MyProc1.,0.

Error, (in `anonymous procedure called from MyProc`) numeric exception: division by zero

See Also

error

events

numerics