@sankhyalabs/core 5.20.0-dev.46 → 5.20.0-dev.47

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.
@@ -0,0 +1,25 @@
1
+ /**
2
+ * `ServiceCanceledException`: Exceção lançada quando ocorre o cancelamento de um serviço.
3
+ */
4
+ export default class ServiceCanceledException extends Error {
5
+
6
+ /** Nome da exceção. */
7
+ public name: string;
8
+
9
+ /** Titulo do erro. */
10
+ public title: string;
11
+
12
+ /** Descrição do erro. */
13
+ public message: string;
14
+
15
+ /** Código do erro, indica o erro disparado pelo backend. */
16
+ public errorCode: string;
17
+
18
+ constructor(title: string, message: string, errorCode: string = "") {
19
+ super(message);
20
+ this.name = "Service Canceled";
21
+ this.title = title;
22
+ this.message = message;
23
+ this.errorCode = errorCode;
24
+ }
25
+ }
package/src/index.ts CHANGED
@@ -19,6 +19,7 @@ import ObjectUtils from "./utils/ObjectUtils.js";
19
19
  import WarningException from "./exceptions/WarningException.js";
20
20
  import WaitingChangeException from "./exceptions/WaitingChangeException.js";
21
21
  import ErrorException from "./exceptions/ErrorException.js";
22
+ import ServiceCanceledException from "./exceptions/ServiceCanceledException.js";
22
23
  import { ErrorTracking } from "./traking/ErrorTraking.js";
23
24
  import { PaginationInfo } from "./dataunit/loading/PaginationInfo.js";
24
25
  import { LoadDataRequest } from "./dataunit/loading/LoadDataRequest.js";
@@ -112,5 +113,6 @@ export {
112
113
  OverflowDirection,
113
114
  OverFlowWatcherParams,
114
115
  OVERFLOWED_CLASS_NAME,
115
- DataUnitEventOptions
116
+ DataUnitEventOptions,
117
+ ServiceCanceledException
116
118
  };