/**
 * Types of errors that the UALError class can represent
 */ export enum UALErrorType { UAL = 'UAL' , Login = 'Login' , Logout = 'Logout' , Signing = 'Signing' , Validation = 'Validation' , Initialization = 'Initialization' , DataRequest = 'DataRequest' , Unsupported = 'Unsupported' } /**
 * Base error class for UAL errors.
 */ export class UALError extends Error { /**
     * The type of the error
     */ public readonly type : UALErrorType ; /**
     * The underlying Error (if any) that caused the current error.
     */ public readonly cause : Error | null ; /**
     * The name of the authenticator that is the source of the error.
     */ public readonly source : string ; param message param source param cause constructor ( message , type , cause , source ) { super ( message ) ; this . type = type ; this . cause = cause ; this . source = source ; } }