0.0.9 • Published 1 year ago

encodechat-helper-plugin-image v0.0.9

Weekly downloads
-
License
PRIVATE
Repository
github
Last release
1 year ago

encodechat-helper-plugin-image

Always throw error

throw {
    //http error: it is optional, only required if the called is a lambda function
    ...HTTPERROR_400,
    //type: suggest to have it for every error
    type: "ERROR_API_ERROR",
    //source: keep the module name and function name
    source: "auth.signIn",
    //message: provide human readable error message. this optional, we should leave the caller to handle it with proper message that may also support multi-langurage
    message: "",
    //detail: provide helpful data to help understand the error better, it can have any data in it.
    detail: {
        reason: "",
        ...anything
    },
    //error: this is the inner error.
    error
};
0.0.9

1 year ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago