This API documentation is for Ballerina 1.2.0. View API documentation for the latest release.

Module : lang.error

Module Overview

This module provides lang library operations on error values defined by the language specification 2020R1.

Records

CallStackElement

Representation of CallStackElement

Detail

The type to which error detail records must belong.

Objects

CallStack

Represent error call stack.

Functions

detail

Returns the error's detail record.

reason

Returns the error's reason string.

stackTrace

Returns an object representing the stack trace of the error.