BBjErrorInfo

Description

In BBj 17.0 and higher, the BBjErrorInfo object encapsulates assorted error information from a specific instant in time, typically captured in an error handler.

Creation

BBjAPI > BBjErrorInfo

The BBjErrorInfo object is created through the following BBjAPI methods:

Return Value

Method

BBjErrorInfo

getErrorInfo()

BBjErrorInfo getErrorInfo(int level)

 

Methods of BBjErrorInfo

Return Value

Method

int

getErr()

int

getErrLine()

string

getErrMes()

long

getHostErr()

int

getLevel()

string

getProgram()

string

getStatement()

 

Remarks

None.

Constants

None.

Example

rem ' BBjErrorInfo

begin
gosub info
i = sqr(-1,err=*next)
gosub info
stop

info:
    info! = bbjapi().getErrorInfo()
    print fill(60,"=")
    print "BBjAPI::getErrorInfo = ",info!
    print "BBjErrorInfo::getLevel =",info!.getLevel()
    print "BBjErrorInfo::getProgram = ",info!.getProgram()
    print "BBjErrorInfo::getStatement = ",info!.getStatement()
    print "BBjErrorInfo::getErr =",info!.getErr()
    print "BBjErrorInfo::getHostErr =",info!.getHostErr()
    print "BBjErrorInfo::getErrLine =",info!.getErrLine()
    print "BBjErrorInfo::getErrMes = ",info!.getErrMes()
return

See Also

BBjAPI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.