3 class DingusError
extends Error
{
6 Error
.captureStackTrace(DingusError
);
10 return this.constructor.name
;
14 class ResponseError
extends DingusError
{
15 constructor(errorResponse
, details
) {
16 super(errorResponse
.errorMessage
);
19 ...(details
&& { details
}),
21 delete this.stack
; // No need for stacktrace here.