BBjErrorInfo::getErr

Description

In BBj 17.0 and higher, this method returns the value of the ERR variable at the moment when this BBjErrorInfo object was captured.

Syntax

Return Value

Method

int

getErr()

Parameters

None.

Return Value

This method returns the value of the ERR variable at the moment when this BBjErrorInfo object was captured.

Remarks

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

List of Errors

BBjErrorInfo

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