1 | import { Cas } from './utilities';
|
2 | /**
|
3 | * Generic base class for all known error context types.
|
4 | *
|
5 | * @category Error Handling
|
6 | */
|
7 | export declare class ErrorContext {
|
8 | }
|
9 | /**
|
10 | * The error context information for a key-value operation.
|
11 | *
|
12 | * @category Error Handling
|
13 | */
|
14 | export declare class KeyValueErrorContext extends ErrorContext {
|
15 | /**
|
16 | * The memcached status code returned by the server.
|
17 | */
|
18 | status_code: number;
|
19 | /**
|
20 | * The opaque identifier for the request.
|
21 | */
|
22 | opaque: number;
|
23 | /**
|
24 | * The cas returned by the server.
|
25 | */
|
26 | cas: Cas;
|
27 | /**
|
28 | * The key that was being operated on.
|
29 | */
|
30 | key: string;
|
31 | /**
|
32 | * The name of the bucket that was being operated on.
|
33 | */
|
34 | bucket: string;
|
35 | /**
|
36 | * The name of the collection that was being operated on.
|
37 | */
|
38 | collection: string;
|
39 | /**
|
40 | * The name of the scope that was being operated on.
|
41 | */
|
42 | scope: string;
|
43 | /**
|
44 | * The context returned by the server helping describing the error.
|
45 | */
|
46 | context: string;
|
47 | /**
|
48 | * The reference id returned by the server for correlation in server logs.
|
49 | */
|
50 | ref: string;
|
51 | /**
|
52 | * @internal
|
53 | */
|
54 | constructor(data: KeyValueErrorContext);
|
55 | }
|
56 | /**
|
57 | * The error context information for a views operation.
|
58 | *
|
59 | * @category Error Handling
|
60 | */
|
61 | export declare class ViewErrorContext extends ErrorContext {
|
62 | /**
|
63 | * The name of the design document that was being operated on.
|
64 | */
|
65 | design_document: string;
|
66 | /**
|
67 | * The name of the view that was being operated on.
|
68 | */
|
69 | view: string;
|
70 | /**
|
71 | * A list of the parameters in use for the operation.
|
72 | */
|
73 | parameters: any;
|
74 | /**
|
75 | * The http response status code which was received.
|
76 | */
|
77 | http_response_code: number;
|
78 | /**
|
79 | * The http response body which was received.
|
80 | */
|
81 | http_response_body: string;
|
82 | /**
|
83 | * @internal
|
84 | */
|
85 | constructor(data: ViewErrorContext);
|
86 | }
|
87 | /**
|
88 | * The error context information for a query operation.
|
89 | *
|
90 | * @category Error Handling
|
91 | */
|
92 | export declare class QueryErrorContext extends ErrorContext {
|
93 | /**
|
94 | * The statement that was being executed when the error occured.
|
95 | */
|
96 | statement: string;
|
97 | /**
|
98 | * The client context id which was sent to the service for correlation
|
99 | * between requests and responses.
|
100 | */
|
101 | client_context_id: string;
|
102 | /**
|
103 | * A list of the parameters in use for the operation.
|
104 | */
|
105 | parameters: any;
|
106 | /**
|
107 | * The http response status code which was received.
|
108 | */
|
109 | http_response_code: number;
|
110 | /**
|
111 | * The http response body which was received.
|
112 | */
|
113 | http_response_body: string;
|
114 | /**
|
115 | * @internal
|
116 | */
|
117 | constructor(data: QueryErrorContext);
|
118 | }
|
119 | /**
|
120 | * The error context information for a search query operation.
|
121 | *
|
122 | * @category Error Handling
|
123 | */
|
124 | export declare class SearchErrorContext extends ErrorContext {
|
125 | /**
|
126 | * The name of the index which was being operated on.
|
127 | */
|
128 | index_name: string;
|
129 | /**
|
130 | * The full query that was being executed.
|
131 | */
|
132 | query: any;
|
133 | /**
|
134 | * A list of the parameters in use for the operation.
|
135 | */
|
136 | parameters: any;
|
137 | /**
|
138 | * The http response status code which was received.
|
139 | */
|
140 | http_response_code: number;
|
141 | /**
|
142 | * The http response body which was received.
|
143 | */
|
144 | http_response_body: string;
|
145 | /**
|
146 | * @internal
|
147 | */
|
148 | constructor(data: SearchErrorContext);
|
149 | }
|
150 | /**
|
151 | * The error context information for an analytics query operation.
|
152 | *
|
153 | * @category Error Handling
|
154 | */
|
155 | export declare class AnalyticsErrorContext extends ErrorContext {
|
156 | /**
|
157 | * The statement that was being executed when the error occured.
|
158 | */
|
159 | statement: string;
|
160 | /**
|
161 | * The client context id which was sent to the service for correlation
|
162 | * between requests and responses.
|
163 | */
|
164 | client_context_id: string;
|
165 | /**
|
166 | * A list of the parameters in use for the operation.
|
167 | */
|
168 | parameters: any;
|
169 | /**
|
170 | * The http response status code which was received.
|
171 | */
|
172 | http_response_code: number;
|
173 | /**
|
174 | * The http response body which was received.
|
175 | */
|
176 | http_response_body: string;
|
177 | /**
|
178 | * @internal
|
179 | */
|
180 | constructor(data: QueryErrorContext);
|
181 | }
|
182 | /**
|
183 | * The error context information for a http operation.
|
184 | *
|
185 | * @category Error Handling
|
186 | */
|
187 | export declare class HttpErrorContext extends ErrorContext {
|
188 | /**
|
189 | * The HTTP method of the request that was performed.
|
190 | */
|
191 | method: string;
|
192 | /**
|
193 | * The request path for the request that was being performed.
|
194 | */
|
195 | request_path: string;
|
196 | /**
|
197 | * The http response status code which was received.
|
198 | */
|
199 | response_code: number;
|
200 | /**
|
201 | * The http response body which was received.
|
202 | */
|
203 | response_body: string;
|
204 | /**
|
205 | * @internal
|
206 | */
|
207 | constructor(data: HttpErrorContext);
|
208 | }
|