onError

 

 

Overview

The onError special form assigns an error event handler function {anLambda}. The scope of the onError special form is limited to the scope of the current executing Lambda. Any error events, occurring during the scope of the current executing Lambda, will result in the specified error event handler Lambda being invoked.

The specified error event handler Lambda, {anLambda}, must be a function of one argument. The error event is converted into a text object and passed to the error event handler function.

Usage

The onError function is used to define an error handler function.

 

Syntax


Expression:

(onError anLambda)


Arguments Name Type Description
Argument:anLambdaLambda The event handler Lambda. The specified error event handler Lambda (anLambda) must be a function of one argument.

Returns:

Returns false if the object has a value of 0. Returns true otherwise.



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

Lambda Boolean

Here are also a number of links to functions having arguments with any of these data types.

abortTransaction addMethod argCount argFetch
attachLibrarian badd balance bcompareEQ
bcompareGE bcompareGT bcompareLE bcompareLT
bcompareNE bdiv beginTransaction binaryInsert
binaryNand binaryNor binaryNot binaryNxor
binarySearch bitwiseAnd bitwiseNand bitwiseNor
bitwiseNot bitwiseNxor bitwiseOr bitwiseShiftLeft
bitwiseShiftRight bitwiseXor bmod bmul
boolean callcc ccompareEQ ccompareGE
ccompareGT ccompareLE ccompareLT ccompareNE
character checkPointTransaction class clear
commitTransaction compareEQ compareGE compareGT
compareLE compareLT compareNE compare
comparison compile cons copy
debugBrowsableProcs debug defchild defclass
define(macro) define defmacro defmethod
deforphan defriend defun detachLibrarian
disassemble display evalInSyncLocalContext eval
exportCsv exportSbf exportTab fdisplay
fileClose fileCopy fileDir fileDisplay
fileErase fileOpen fileRead fileWrite
filewriteln findBlock gc globalBinding
icompareEQ icompareGE icompareGT icompareLE
icompareLT icompareNE importCsv importSbf
importTab inside inspect integer
isAtom isBitVector isBoolean isBound
isByteVector isCharAlphabetic isCharAlphanumeric isCharLowercase
isCharName isCharNumeric isCharUppercase isCharWhitespace
isCharacter isClass isComplex isDate
isDirectory isEqual isError isEven
isExact isFloatVector isIdentical isImmediate
isInexact isInside isIntegerVector isInteger
isMatrix isMember isMoney isNegative
isNull isNumberMatrix isNumberVector isNumber
isObjectVector isObject isOdd isPair
isPcodeVector isPositive isTransaction isType
isVector isZero lambda length
lisp list loadModule loadWorkspace
logConsole macroReplace makeLambda makeQuotedList
member money morph myself
ncompareEQ ncompareGE ncompareGT ncompareLE
ncompareLT ncompareNE new number
onError pair quit refLibrarian
ref remove rename reset
saveModule saveObject saveWorkspace send
setBlock setCar set setf
setq sizeof sort stringCiEQ
stringCiGE stringCiGT stringCiLE stringCiLT
stringCiNE substringCiEQ substringCiGE substringCiGT
substringCiLE substringCiLT substringCiNE substringEQ
substringGE substringGT substringLE substringLT
substringNE super systemCheck vectorFill
version writelg writeln

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE