Home Reference Source Test
import {BaseException} from '@simbachain/libsimba-js/src/exceptions.js'
public class | source

BaseException

Extends:

Error → BaseException

Base exception that all libsimba Exceptions extend

Constructor Summary

Public Constructor
public

constructor(message: string, cause: Error | string)

Base exception that all libsimba Exceptions extend

Member Summary

Public Members
public

cause: *

public

message: *

public

Public Constructors

public constructor(message: string, cause: Error | string) source

Base exception that all libsimba Exceptions extend

Params:

NameTypeAttributeDescription
message string

the error message

cause Error | string
  • optional

(Optional) wrap an existing error

Public Members

public cause: * source

public message: * source

public name: string source