dochub-sdk 0.1.270 → 0.1.271
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/interfaces/protocols.ts +14 -0
- package/package.json +1 -1
package/interfaces/protocols.ts
CHANGED
@@ -106,6 +106,20 @@ export interface IDocHubCommitBatch extends IDocHubProtocolRequestConfig {
|
|
106
106
|
data: IDocHubCommitFile[];
|
107
107
|
}
|
108
108
|
|
109
|
+
/**
|
110
|
+
* Ошибки порождаемые методом COMMIT
|
111
|
+
*/
|
112
|
+
export class DocHubCommitError extends Error {
|
113
|
+
private errors_: Error[] = [];
|
114
|
+
constructor(description: string, errors: Error[]) {
|
115
|
+
super(description, { cause: errors });
|
116
|
+
this.errors_ = errors;
|
117
|
+
}
|
118
|
+
get errors(): Error[] {
|
119
|
+
return this.errors;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
109
123
|
/**
|
110
124
|
* Структура коммита
|
111
125
|
*/
|