Documentation / @gebeta/api
@gebeta/api
Enumerations
ErrorCode
Error codes for consistent error identification across all SDKs. Organized by category with numeric suffixes for easy filtering.
Enumeration Members
| Enumeration Member | Value | Defined in |
|---|---|---|
API_BAD_REQUEST | "API_3001" | packages/api/src/errors/codes.ts:33 |
API_FORBIDDEN | "API_3003" | packages/api/src/errors/codes.ts:35 |
API_NOT_FOUND | "API_3004" | packages/api/src/errors/codes.ts:36 |
API_RATE_LIMIT | "API_3005" | packages/api/src/errors/codes.ts:37 |
API_SERVER_ERROR | "API_3006" | packages/api/src/errors/codes.ts:38 |
API_UNAUTHORIZED | "API_3002" | packages/api/src/errors/codes.ts:34 |
API_UNKNOWN_ERROR | "API_3007" | packages/api/src/errors/codes.ts:39 |
GEOCODING_INVALID_COORDINATES | "GEOCODING_4002" | packages/api/src/errors/codes.ts:43 |
GEOCODING_NOT_FOUND | "GEOCODING_4001" | packages/api/src/errors/codes.ts:42 |
GEOCODING_REQUEST_FAILED | "GEOCODING_4003" | packages/api/src/errors/codes.ts:44 |
NAVIGATION_NOT_STARTED | "NAVIGATION_6001" | packages/api/src/errors/codes.ts:53 |
NAVIGATION_OFF_ROUTE | "NAVIGATION_6002" | packages/api/src/errors/codes.ts:54 |
NAVIGATION_REQUEST_FAILED | "NAVIGATION_6003" | packages/api/src/errors/codes.ts:55 |
NETWORK_FAILED | "NETWORK_2001" | packages/api/src/errors/codes.ts:27 |
NETWORK_OFFLINE | "NETWORK_2003" | packages/api/src/errors/codes.ts:29 |
NETWORK_REQUEST_FAILED | "NETWORK_2004" | packages/api/src/errors/codes.ts:30 |
NETWORK_TIMEOUT | "NETWORK_2002" | packages/api/src/errors/codes.ts:28 |
PLATFORM_GEOLOCATION_DENIED | "PLATFORM_7001" | packages/api/src/errors/codes.ts:58 |
PLATFORM_GEOLOCATION_TIMEOUT | "PLATFORM_7003" | packages/api/src/errors/codes.ts:60 |
PLATFORM_GEOLOCATION_UNAVAILABLE | "PLATFORM_7002" | packages/api/src/errors/codes.ts:59 |
PLATFORM_NOT_INITIALIZED | "PLATFORM_7004" | packages/api/src/errors/codes.ts:61 |
ROUTING_INVALID_POLYLINE | "ROUTING_5004" | packages/api/src/errors/codes.ts:50 |
ROUTING_INVALID_WAYPOINTS | "ROUTING_5002" | packages/api/src/errors/codes.ts:48 |
ROUTING_NO_ROUTE | "ROUTING_5001" | packages/api/src/errors/codes.ts:47 |
ROUTING_REQUEST_FAILED | "ROUTING_5003" | packages/api/src/errors/codes.ts:49 |
VALIDATION_INVALID_FORMAT | "VALIDATION_1002" | packages/api/src/errors/codes.ts:22 |
VALIDATION_INVALID_TYPE | "VALIDATION_1004" | packages/api/src/errors/codes.ts:24 |
VALIDATION_OUT_OF_RANGE | "VALIDATION_1003" | packages/api/src/errors/codes.ts:23 |
VALIDATION_REQUIRED_FIELD | "VALIDATION_1001" | packages/api/src/errors/codes.ts:21 |
ErrorDomain
Error domain/feature area where an error occurred.
Enumeration Members
| Enumeration Member | Value | Defined in |
|---|---|---|
API | "api" | packages/api/src/errors/codes.ts:7 |
GEOCODING | "geocoding" | packages/api/src/errors/codes.ts:8 |
NAVIGATION | "navigation" | packages/api/src/errors/codes.ts:10 |
NETWORK | "network" | packages/api/src/errors/codes.ts:6 |
PLATFORM | "platform" | packages/api/src/errors/codes.ts:12 |
ROUTING | "routing" | packages/api/src/errors/codes.ts:9 |
TRACKING | "tracking" | packages/api/src/errors/codes.ts:11 |
VALIDATION | "validation" | packages/api/src/errors/codes.ts:5 |
Classes
ApiError
Base error class for API-related errors.
Extends
Extended by
Constructors
new ApiError()
new ApiError(
message,
statusCode,
code,
requestId?,
context?): ApiErrorParameters
| Parameter | Type |
|---|---|
message | string |
statusCode | number |
code | ErrorCode |
requestId? | string |
context? | Record<string, unknown> |
Returns
Overrides
Defined in
packages/api/src/errors/api.ts:11
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | GebetaError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | GebetaError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | GebetaError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | GebetaError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | GebetaError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | GebetaError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | GebetaError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | GebetaError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode | readonly | number | - | - | packages/api/src/errors/api.ts:9 |
timestamp | readonly | number | - | GebetaError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | GebetaError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:52
fromResponse()
static fromResponse(response, statusCode): ApiErrorParameters
| Parameter | Type |
|---|---|
response | ApiErrorResponse |
statusCode | number |
Returns
Defined in
packages/api/src/errors/api.ts:30
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:56
BadRequestError
Error thrown for 400 Bad Request responses.
Extends
Constructors
new BadRequestError()
new BadRequestError(
message,
requestId?,
context?): BadRequestErrorParameters
| Parameter | Type |
|---|---|
message | string |
requestId? | string |
context? | Record<string, unknown> |
Returns
Overrides
Defined in
packages/api/src/errors/api.ts:45
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | ApiError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | ApiError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | ApiError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | ApiError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | ApiError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | ApiError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | ApiError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | ApiError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode | readonly | number | - | ApiError.statusCode | packages/api/src/errors/api.ts:9 |
timestamp | readonly | number | - | ApiError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | ApiError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:52
fromResponse()
static fromResponse(response, statusCode): ApiErrorParameters
| Parameter | Type |
|---|---|
response | ApiErrorResponse |
statusCode | number |
Returns
Inherited from
Defined in
packages/api/src/errors/api.ts:30
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:56
BusinessLogicError
Base error class for business logic errors.
Extends
Extended by
Constructors
new BusinessLogicError()
new BusinessLogicError(
code,
message,
domain,
context?): BusinessLogicErrorParameters
| Parameter | Type |
|---|---|
code | ErrorCode |
message | string |
domain | ErrorDomain |
context? | Record<string, unknown> |
Returns
Overrides
Defined in
packages/api/src/errors/business.ts:8
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | GebetaError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | GebetaError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | GebetaError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | GebetaError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | GebetaError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | GebetaError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | GebetaError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | GebetaError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | GebetaError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | GebetaError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:56
ForbiddenError
Error thrown for 403 Forbidden responses.
Extends
Constructors
new ForbiddenError()
new ForbiddenError(message, requestId?): ForbiddenErrorParameters
| Parameter | Type |
|---|---|
message | string |
requestId? | string |
Returns
Overrides
Defined in
packages/api/src/errors/api.ts:65
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | ApiError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | ApiError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | ApiError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | ApiError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | ApiError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | ApiError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | ApiError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | ApiError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode | readonly | number | - | ApiError.statusCode | packages/api/src/errors/api.ts:9 |
timestamp | readonly | number | - | ApiError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | ApiError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:52
fromResponse()
static fromResponse(response, statusCode): ApiErrorParameters
| Parameter | Type |
|---|---|
response | ApiErrorResponse |
statusCode | number |
Returns
Inherited from
Defined in
packages/api/src/errors/api.ts:30
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:56
GebetaError
Base error class for all Gebeta SDK errors. Provides consistent error structure across all SDKs.
Extends
Error
Extended by
Constructors
new GebetaError()
new GebetaError(details): GebetaErrorParameters
| Parameter | Type |
|---|---|
details | GebetaErrorDetails |
Returns
Overrides
Error.constructor
Defined in
packages/api/src/errors/base.ts:16
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | - | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | - | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | - | packages/api/src/errors/base.ts:10 |
message | public | string | - | Error.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | Error.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | - | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | - | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | Error.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | - | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | Error.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Error.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Error.prepareStackTrace
Defined in
node_modules/@types/node/globals.d.ts:56
GeocodingError
Error thrown for geocoding-related failures.
Extends
Constructors
new GeocodingError()
new GeocodingError(
code,
message,
context?): GeocodingErrorParameters
| Parameter | Type |
|---|---|
code | ErrorCode |
message | string |
context? | Record<string, unknown> |
Returns
Overrides
BusinessLogicError.constructor
Defined in
packages/api/src/errors/business.ts:29
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | BusinessLogicError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | BusinessLogicError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | BusinessLogicError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | BusinessLogicError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | BusinessLogicError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | BusinessLogicError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | BusinessLogicError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | BusinessLogicError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | BusinessLogicError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | BusinessLogicError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
BusinessLogicError.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
BusinessLogicError.prepareStackTrace
Defined in
node_modules/@types/node/globals.d.ts:56
GeolocationDeniedError
Error thrown when geolocation access is denied.
Extends
Constructors
new GeolocationDeniedError()
new GeolocationDeniedError(originalError?): GeolocationDeniedErrorParameters
| Parameter | Type |
|---|---|
originalError? | Error |
Returns
Overrides
Defined in
packages/api/src/errors/platform.ts:30
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | PlatformError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | PlatformError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | PlatformError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | PlatformError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | PlatformError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | PlatformError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | PlatformError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | PlatformError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | PlatformError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | PlatformError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
PlatformError.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
PlatformError.prepareStackTrace
Defined in
node_modules/@types/node/globals.d.ts:56
GeolocationTimeoutError
Error thrown when geolocation request times out.
Extends
Constructors
new GeolocationTimeoutError()
new GeolocationTimeoutError(timeoutMs?, originalError?): GeolocationTimeoutErrorParameters
| Parameter | Type |
|---|---|
timeoutMs? | number |
originalError? | Error |
Returns
Overrides
Defined in
packages/api/src/errors/platform.ts:60
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | PlatformError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | PlatformError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | PlatformError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | PlatformError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | PlatformError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | PlatformError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | PlatformError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | PlatformError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | PlatformError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | PlatformError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
PlatformError.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
PlatformError.prepareStackTrace
Defined in
node_modules/@types/node/globals.d.ts:56
GeolocationUnavailableError
Error thrown when geolocation is unavailable.
Extends
Constructors
new GeolocationUnavailableError()
new GeolocationUnavailableError(originalError?): GeolocationUnavailableErrorParameters
| Parameter | Type |
|---|---|
originalError? | Error |
Returns
Overrides
Defined in
packages/api/src/errors/platform.ts:45
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | PlatformError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | PlatformError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | PlatformError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | PlatformError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | PlatformError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | PlatformError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | PlatformError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | PlatformError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | PlatformError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | PlatformError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
PlatformError.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
PlatformError.prepareStackTrace
Defined in
node_modules/@types/node/globals.d.ts:56
NavigationError
Error thrown for navigation-related failures.
Extends
Constructors
new NavigationError()
new NavigationError(
code,
message,
context?): NavigationErrorParameters
| Parameter | Type |
|---|---|
code | ErrorCode |
message | string |
context? | Record<string, unknown> |
Returns
Overrides
BusinessLogicError.constructor
Defined in
packages/api/src/errors/business.ts:49
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | BusinessLogicError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | BusinessLogicError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | BusinessLogicError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | BusinessLogicError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | BusinessLogicError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | BusinessLogicError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | BusinessLogicError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | BusinessLogicError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | BusinessLogicError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | BusinessLogicError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
BusinessLogicError.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
BusinessLogicError.prepareStackTrace
Defined in
node_modules/@types/node/globals.d.ts:56
NetworkError
Error thrown when network operations fail.
Extends
Extended by
Constructors
new NetworkError()
new NetworkError(
message,
code,
originalError?,
context?): NetworkErrorParameters
| Parameter | Type |
|---|---|
message | string |
code | ErrorCode |
originalError? | Error |
context? | Record<string, unknown> |
Returns
Overrides
Defined in
packages/api/src/errors/network.ts:8
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | GebetaError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | GebetaError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | GebetaError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | GebetaError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | GebetaError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | GebetaError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | GebetaError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | GebetaError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | GebetaError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | GebetaError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:56
NetworkOfflineError
Error thrown when the device is offline.
Extends
Constructors
new NetworkOfflineError()
new NetworkOfflineError(originalError?): NetworkOfflineErrorParameters
| Parameter | Type |
|---|---|
originalError? | Error |
Returns
Overrides
Defined in
packages/api/src/errors/network.ts:45
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | NetworkError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | NetworkError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | NetworkError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | NetworkError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | NetworkError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | NetworkError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | NetworkError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | NetworkError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | NetworkError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | NetworkError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
NetworkError.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
NetworkError.prepareStackTrace
Defined in
node_modules/@types/node/globals.d.ts:56
NetworkTimeoutError
Error thrown when a network request times out.
Extends
Constructors
new NetworkTimeoutError()
new NetworkTimeoutError(timeoutMs?, originalError?): NetworkTimeoutErrorParameters
| Parameter | Type |
|---|---|
timeoutMs? | number |
originalError? | Error |
Returns
Overrides
Defined in
packages/api/src/errors/network.ts:30
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | NetworkError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | NetworkError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | NetworkError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | NetworkError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | NetworkError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | NetworkError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | NetworkError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | NetworkError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | NetworkError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | NetworkError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
NetworkError.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
NetworkError.prepareStackTrace
Defined in
node_modules/@types/node/globals.d.ts:56
NotFoundError
Error thrown for 404 Not Found responses.
Extends
Constructors
new NotFoundError()
new NotFoundError(message, requestId?): NotFoundErrorParameters
| Parameter | Type |
|---|---|
message | string |
requestId? | string |
Returns
Overrides
Defined in
packages/api/src/errors/api.ts:75
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | ApiError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | ApiError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | ApiError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | ApiError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | ApiError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | ApiError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | ApiError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | ApiError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode | readonly | number | - | ApiError.statusCode | packages/api/src/errors/api.ts:9 |
timestamp | readonly | number | - | ApiError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | ApiError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:52
fromResponse()
static fromResponse(response, statusCode): ApiErrorParameters
| Parameter | Type |
|---|---|
response | ApiErrorResponse |
statusCode | number |
Returns
Inherited from
Defined in
packages/api/src/errors/api.ts:30
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:56
PlatformError
Error thrown for platform-specific failures (e.g., geolocation API).
Extends
Extended by
Constructors
new PlatformError()
new PlatformError(
code,
message,
context?,
originalError?): PlatformErrorParameters
| Parameter | Type |
|---|---|
code | ErrorCode |
message | string |
context? | Record<string, unknown> |
originalError? | Error |
Returns
Overrides
Defined in
packages/api/src/errors/platform.ts:8
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | GebetaError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | GebetaError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | GebetaError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | GebetaError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | GebetaError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | GebetaError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | GebetaError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | GebetaError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | GebetaError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | GebetaError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:56
RateLimitError
Error thrown for 429 Rate Limit responses.
Extends
Constructors
new RateLimitError()
new RateLimitError(
message,
requestId?,
retryAfter?): RateLimitErrorParameters
| Parameter | Type |
|---|---|
message | string |
requestId? | string |
retryAfter? | number |
Returns
Overrides
Defined in
packages/api/src/errors/api.ts:85
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | ApiError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | ApiError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | ApiError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | ApiError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | ApiError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | ApiError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | ApiError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | ApiError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode | readonly | number | - | ApiError.statusCode | packages/api/src/errors/api.ts:9 |
timestamp | readonly | number | - | ApiError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | ApiError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:52
fromResponse()
static fromResponse(response, statusCode): ApiErrorParameters
| Parameter | Type |
|---|---|
response | ApiErrorResponse |
statusCode | number |
Returns
Inherited from
Defined in
packages/api/src/errors/api.ts:30
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:56
RoutingError
Error thrown for routing-related failures.
Extends
Constructors
new RoutingError()
new RoutingError(
code,
message,
context?): RoutingErrorParameters
| Parameter | Type |
|---|---|
code | ErrorCode |
message | string |
context? | Record<string, unknown> |
Returns
Overrides
BusinessLogicError.constructor
Defined in
packages/api/src/errors/business.ts:39
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | BusinessLogicError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | BusinessLogicError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | BusinessLogicError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | BusinessLogicError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | BusinessLogicError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | BusinessLogicError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | BusinessLogicError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | BusinessLogicError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | BusinessLogicError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | BusinessLogicError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
BusinessLogicError.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
BusinessLogicError.prepareStackTrace
Defined in
node_modules/@types/node/globals.d.ts:56
ServerError
Error thrown for 5xx Server Error responses.
Extends
Constructors
new ServerError()
new ServerError(
message,
statusCode,
requestId?): ServerErrorParameters
| Parameter | Type |
|---|---|
message | string |
statusCode | number |
requestId? | string |
Returns
Overrides
Defined in
packages/api/src/errors/api.ts:101
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | ApiError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | ApiError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | ApiError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | ApiError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | ApiError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | ApiError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | ApiError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | ApiError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode | readonly | number | - | ApiError.statusCode | packages/api/src/errors/api.ts:9 |
timestamp | readonly | number | - | ApiError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | ApiError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:52
fromResponse()
static fromResponse(response, statusCode): ApiErrorParameters
| Parameter | Type |
|---|---|
response | ApiErrorResponse |
statusCode | number |
Returns
Inherited from
Defined in
packages/api/src/errors/api.ts:30
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:56
TrackingError
Error thrown for tracking-related failures.
Extends
Constructors
new TrackingError()
new TrackingError(
code,
message,
context?): TrackingErrorParameters
| Parameter | Type |
|---|---|
code | ErrorCode |
message | string |
context? | Record<string, unknown> |
Returns
Overrides
BusinessLogicError.constructor
Defined in
packages/api/src/errors/business.ts:59
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | BusinessLogicError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | BusinessLogicError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | BusinessLogicError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | BusinessLogicError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | BusinessLogicError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | BusinessLogicError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | BusinessLogicError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | BusinessLogicError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | BusinessLogicError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | BusinessLogicError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
BusinessLogicError.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
BusinessLogicError.prepareStackTrace
Defined in
node_modules/@types/node/globals.d.ts:56
UnauthorizedError
Error thrown for 401 Unauthorized responses.
Extends
Constructors
new UnauthorizedError()
new UnauthorizedError(message, requestId?): UnauthorizedErrorParameters
| Parameter | Type |
|---|---|
message | string |
requestId? | string |
Returns
Overrides
Defined in
packages/api/src/errors/api.ts:55
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | ApiError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | ApiError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | ApiError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | ApiError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | ApiError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | ApiError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | ApiError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | ApiError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode | readonly | number | - | ApiError.statusCode | packages/api/src/errors/api.ts:9 |
timestamp | readonly | number | - | ApiError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | ApiError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:52
fromResponse()
static fromResponse(response, statusCode): ApiErrorParameters
| Parameter | Type |
|---|---|
response | ApiErrorResponse |
statusCode | number |
Returns
Inherited from
Defined in
packages/api/src/errors/api.ts:30
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:56
ValidationError
Error thrown when input validation fails.
Extends
Constructors
new ValidationError()
new ValidationError(
message,
field?,
context?): ValidationErrorParameters
| Parameter | Type |
|---|---|
message | string |
field? | string |
context? | Record<string, unknown> |
Returns
Overrides
Defined in
packages/api/src/errors/validation.ts:8
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | ErrorCode | - | GebetaError.code | packages/api/src/errors/base.ts:9 |
context? | readonly | Record<string, unknown> | - | GebetaError.context | packages/api/src/errors/base.ts:11 |
domain? | readonly | ErrorDomain | - | GebetaError.domain | packages/api/src/errors/base.ts:10 |
message | public | string | - | GebetaError.message | node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | - | GebetaError.name | node_modules/typescript/lib/lib.es5.d.ts:1076 |
originalError? | readonly | Error | - | GebetaError.originalError | packages/api/src/errors/base.ts:12 |
requestId? | readonly | string | - | GebetaError.requestId | packages/api/src/errors/base.ts:14 |
stack? | public | string | - | GebetaError.stack | node_modules/typescript/lib/lib.es5.d.ts:1078 |
timestamp | readonly | number | - | GebetaError.timestamp | packages/api/src/errors/base.ts:13 |
stackTraceLimit | static | number | The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | GebetaError.stackTraceLimit | node_modules/@types/node/globals.d.ts:68 |
Methods
toJSON()
toJSON(): GebetaErrorDetailsGet error details as a plain object.
Returns
Inherited from
Defined in
packages/api/src/errors/base.ts:36
captureStackTrace()
static captureStackTrace(targetObject, constructorOpt?): voidCreates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.
The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:52
prepareStackTrace()
static prepareStackTrace(err, stackTraces): anyParameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Defined in
node_modules/@types/node/globals.d.ts:56
Interfaces
ApiErrorResponse
API error response structure from backend.
Properties
| Property | Type | Defined in |
|---|---|---|
error | object | packages/api/src/errors/types.ts:38 |
error.code? | string | packages/api/src/errors/types.ts:39 |
error.details? | Record<string, unknown> | packages/api/src/errors/types.ts:41 |
error.message | string | packages/api/src/errors/types.ts:40 |
error.requestId? | string | packages/api/src/errors/types.ts:42 |
GebetaErrorDetails
Base error details structure for all Gebeta errors.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
code | ErrorCode | Error code for programmatic error handling | packages/api/src/errors/types.ts:8 |
context? | Record<string, unknown> | Additional context data for debugging and error handling. Examples: - Field names that failed validation - Retry information (e.g., { retryAfter: 60 }) - Request parameters that caused the error - Any other relevant debugging information | packages/api/src/errors/types.ts:21 |
domain? | ErrorDomain | Domain/feature area where the error occurred | packages/api/src/errors/types.ts:12 |
message | string | Human-readable error message | packages/api/src/errors/types.ts:10 |
originalError? | Error | Original error that was wrapped (if applicable) | packages/api/src/errors/types.ts:23 |
requestId? | string | Request ID from the API response (for API errors). Used to correlate errors with server-side logs for debugging. Typically returned in response headers (x-request-id) or error response body. | packages/api/src/errors/types.ts:31 |
timestamp | number | Timestamp when the error occurred | packages/api/src/errors/types.ts:25 |
Functions
createApiError()
function createApiError(
statusCode,
response,
requestId?): ApiErrorCreates an API error from an HTTP response. Uses getErrorCodeForStatusCode (from api.ts) as the single source of truth for status code → error code mapping, then instantiates the appropriate error class.
Parameters
| Parameter | Type |
|---|---|
statusCode | number |
response | string | ApiErrorResponse |
requestId? | string |
Returns
Defined in
packages/api/src/errors/factories.ts:64
createGeocodingError()
function createGeocodingError(
code,
message,
context?): GeocodingErrorCreates a geocoding error given a code, message and a context.
Parameters
| Parameter | Type |
|---|---|
code | ErrorCode |
message | string |
context? | Record<string, unknown> |
Returns
Defined in
packages/api/src/errors/factories.ts:116
createNavigationError()
function createNavigationError(
code,
message,
context?): NavigationErrorCreates a navigation error given a code, message and a context.
Parameters
| Parameter | Type |
|---|---|
code | ErrorCode |
message | string |
context? | Record<string, unknown> |
Returns
Defined in
packages/api/src/errors/factories.ts:138
createNetworkError()
function createNetworkError(originalError, context?): NetworkErrorCreates a network error from a fetch failure given an original error and a context.
Parameters
| Parameter | Type |
|---|---|
originalError | Error |
context? | Record<string, unknown> |
Returns
Defined in
packages/api/src/errors/factories.ts:30
createNetworkOfflineError()
function createNetworkOfflineError(originalError?): NetworkOfflineErrorCreates a network offline error.
Parameters
| Parameter | Type |
|---|---|
originalError? | Error |
Returns
Defined in
packages/api/src/errors/factories.ts:55
createNetworkTimeoutError()
function createNetworkTimeoutError(originalError?, timeoutMs?): NetworkTimeoutErrorCreates a network timeout error given a timeout in milliseconds and an original error.
Parameters
| Parameter | Type |
|---|---|
originalError? | Error |
timeoutMs? | number |
Returns
Defined in
packages/api/src/errors/factories.ts:45
createRoutingError()
function createRoutingError(
code,
message,
context?): RoutingErrorCreates a routing error given a code, message and a context.
Parameters
| Parameter | Type |
|---|---|
code | ErrorCode |
message | string |
context? | Record<string, unknown> |
Returns
Defined in
packages/api/src/errors/factories.ts:127
createTrackingError()
function createTrackingError(
code,
message,
context?): TrackingErrorCreates a tracking error given a code, message and a context.
Parameters
| Parameter | Type |
|---|---|
code | ErrorCode |
message | string |
context? | Record<string, unknown> |
Returns
Defined in
packages/api/src/errors/factories.ts:149
createValidationError()
function createValidationError(field, reason?): ValidationErrorCreates a validation error for a required field given a field name and a reason.
Parameters
| Parameter | Type |
|---|---|
field | string |
reason? | string |
Returns
Defined in
packages/api/src/errors/factories.ts:20
extractRequestId()
function extractRequestId(response): Promise<string | undefined>Extracts request ID from a Response object (from headers or body).
Parameters
| Parameter | Type |
|---|---|
response | Response |
Returns
Promise<string | undefined>
Defined in
packages/api/src/errors/utils.ts:79
formatErrorForLogging()
function formatErrorForLogging(error): stringFormats an error for logging purposes.
Parameters
| Parameter | Type |
|---|---|
error | GebetaError |
Returns
string
Defined in
packages/api/src/errors/utils.ts:35
getErrorCode()
function getErrorCode(error): ErrorCode | nullGets the error code from an error, or null if not a GebetaError.
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
ErrorCode | null
Defined in
packages/api/src/errors/utils.ts:15
getErrorDomain()
function getErrorDomain(error): ErrorDomain | nullGets the error domain from an error, or null if not a GebetaError.
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
ErrorDomain | null
Defined in
packages/api/src/errors/utils.ts:25
isGebetaError()
function isGebetaError(error): error is GebetaErrorType guard to check if an error is a GebetaError.
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
error is GebetaError
Defined in
packages/api/src/errors/utils.ts:8
parseApiErrorResponse()
function parseApiErrorResponse(response): Promise<ApiErrorResponse>Parses an API error response from a Response object.
Parameters
| Parameter | Type |
|---|---|
response | Response |
Returns
Promise<ApiErrorResponse>
Defined in
packages/api/src/errors/utils.ts:56
Namespaces
| Namespace | Description |
|---|---|
| API | - |
| Clustering | - |
| Common | - |
| Components | - |
| Events | - |
| Fencing | - |
| Geocoding | - |
| Map | - |
| Navigation | - |
| Overlay | - |
| Platform | - |
| Routing | - |
| Tracking | - |