Alokai

ModelError

Error message ModelError

export interface ModelError {
	'errorCode'?: string;
	'exceptionMessage'?: string;
	'language'?: string;
	'message'?: string;
	'position'?: number;
	'reason'?: string;
	'subject'?: string;
	'subjectType'?: string;
	'type'?: string;
}

Properties

NameRequiredTypeDescription
errorCodeOptionalstringError code {string} ModelError
exceptionMessageOptionalstring{string} ModelError
languageOptionalstring{string} ModelError
messageOptionalstringDescriptive, human readable error message. {string} ModelError
positionOptionalnumber{number} ModelError
reasonOptionalstringAdditional classification specific for each error type e.g. 'noStock'. {string} ModelError
subjectOptionalstringIdentifier of the related object e.g. '1'. {string} ModelError
subjectTypeOptionalstringType of the object related to the error e.g. 'entry'. {string} ModelError
typeOptionalstringType of the error e.g. 'LowStockError'. {string} ModelError

On this page