UNPKG

@telstra/iot-connectivity-manager

Version:
32 lines (31 loc) 903 B
import { ErrorCode, IErrorDetail } from '@telstra/core'; export abstract class ServiceErrorCode extends ErrorCode { static readonly InvalidSchema: IErrorDetail = { message: 'Invalid schema', code: 20001, }; static readonly MissingAttribute: IErrorDetail = { message: 'Missing attribute', code: 20002, }; static readonly InvalidAttribute: IErrorDetail = { message: 'Invalid attribute', code: 20003, }; static readonly InvalidIMSI: IErrorDetail = { message: 'Invalid IMSI value', code: 20007, }; static readonly NotFoundIMSI: IErrorDetail = { message: 'Not Found IMSI', code: 20008, }; static readonly ICMServiceUnavailable: IErrorDetail = { message: 'Service is currently unavailable', code: 20009, }; static readonly ICMServiceUnknownError: IErrorDetail = { message: 'An unknown error has occurred.', code: 20010, }; }