BkperError
Standard error class for Bkper API errors. Extends Error to enable instanceof checks and standard error handling.
Extends
Error
Constructors
Constructor
new BkperError( code, message, reason?): BkperError;Parameters
| Parameter | Type |
|---|---|
code | number |
message | string |
reason? | string |
Returns
BkperError
Overrides
Error.constructorProperties
code
readonly code: number;HTTP status code (e.g., 404, 400, 500)
message
message: string;Inherited from
Error.messagename
name: string;Inherited from
Error.namereason?
readonly optional reason: string;Machine-readable reason (e.g., “notFound”, “badRequest”)
stack?
optional stack: string;Inherited from
Error.stackprepareStackTrace()?
static optional prepareStackTrace: (err, stackTraces) => any;Optional override for formatting stack traces
Parameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Error.prepareStackTracestackTraceLimit
static stackTraceLimit: number;Inherited from
Error.stackTraceLimitMethods
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): void;Create .stack property on a target object
Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Error.captureStackTrace