NumericException - Maple Programming Help

Home : Support : Online Help : Mathematics : Numerical Computations : Maple Numerics : Functions : NumericException

NumericException

return the exception string of an event

 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

 > $\mathrm{NumericException}\left('\mathrm{division_by_zero}'\right)$
 ${"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:
 > $\mathrm{NumericEventHandler}\left('\mathrm{division_by_zero}'=\mathrm{MyHandler}\right)$
 ${\mathrm{division_by_zero}}{=}{\mathrm{default}}$ (2)
 > MyProc := proc(a,b) a/b; end proc:
 > $\frac{1.}{0.}$
 ${Float}{}\left({\mathrm{\infty }}\right)$ (3)
 > $\mathrm{MyProc}\left(1.,0.\right)$