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.
25 class RouterError
extends DingusError
{
26 constructor(...args
) {
32 class RouterNoPathError
extends RouterError
{
35 class RouterNoMethodError
extends RouterError
{