DataBasic Reference > DataBasic Exception Handler > Get Exception Message - EXCEPT.MSG()

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

EXCEPT.MSG() Function (dbasic_exception_hndlr_exceptmsg.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

EXCEPT.MSG() Function

The DataBasic EXCEPT.MSG function returns the last exception message, which can be multi-valued. If no exception has been generated or no exception message was supplied, a null string is returned.

Syntax

EXCEPT.MSG()

Example

PRINT "The following error has occurred"
   PRINT
   PRINT "Number:      ":EXCEPT.NUM()
   PRINT "Description: ":EXCEPT.MSG()

Displays the details of the exception that has been thrown.

See Also

DataBasic Exception Handler

RealityV15.1 (MoTW) Revision 7Comment on this topic