UNPKG

1.4 kBTypeScriptView Raw
1import { CompositeMapper } from "@azure/ms-rest-js";
2/**
3 * @class
4 * Provides additional information about an http error response returned from a Microsoft Azure service.
5 */
6export interface CloudError extends Error {
7 /**
8 * @property {string} code The error code parsed from the body of the http error response.
9 */
10 code: string;
11 /**
12 * @property {string} message The error message parsed from the body of the http error response.
13 */
14 message: string;
15 /**
16 * @property {string} [target] The target of the error.
17 */
18 target?: string;
19 /**
20 * @property {Array<CloudError>} [details] An array of CloudError objects specifying the details.
21 */
22 details?: Array<CloudError>;
23 /**
24 * @property {any} [innerError] The inner error parsed from the body of the http error response
25 */
26 innerError?: any;
27 /**
28 * @property {AdditionalInfoElement} [innerError] The additional error information
29 */
30 additionalInfo?: AdditionalInfoElement;
31}
32/**
33 * @interface
34 * Additional data for an instance of CloudError.
35 */
36export interface AdditionalInfoElement {
37 /**
38 * @property {string} [type] Type of the data.
39 */
40 type?: string;
41 /**
42 * @property {string} [info] Additional info.
43 */
44 info?: string;
45}
46export declare const CloudErrorMapper: CompositeMapper;
47//# sourceMappingURL=cloudError.d.ts.map
\No newline at end of file