ballerina/lang.error1.0.0

Module Overview

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

Functions

[6]

cause

Returns the error's cause.

detail

Returns the error's detail record.

message

Returns the error's message.

stackTrace

Returns an object representing the stack trace of the error.

toBalString

Converts an error to a string that describes the value in Ballerina syntax.

toString

Converts an error to a string.

Classes

[2]

CallStack

Represent error call stack.

DefaultRetryManager

The RetryManager used by default.

Object Types

[1]

RetryManager

Records

[2]

CallStackElement

Representation of `CallStackElement`

Detail

The type to which error detail records must belong.

Types

[1]

DetailType

A type parameter that is a subtype of error `Detail` record type.

Errors

[1]

Retriable

A type of error which can be retried.