Aller au contenu principal

@log-right/base > ResultBase

ResultBase class​

A class used to handle the result of a function call or sub-process. Functions/process should return back this object so that the calling function can evaluate it's success.

Signature:
export declare class ResultBase extends Error 
Extends: Error

Constructors​

ConstructorModifiersDescription
(constructor)(message)Constructs a new instance of the ResultBase class

Properties​

PropertyModifiersTypeDescription
instanceId?string(Optional) A string ID used in identifying if the object is a result