@sankhyalabs/core 4.4.4 → 4.5.0

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.
@@ -2,6 +2,9 @@
2
2
  * `WaitingChangeException`: Exceção lançada quando um campo está pendente de finalizar a alteração antes de executar uma ação.
3
3
  */
4
4
  export default class WaitingChangeException extends Error {
5
+
6
+ /** Nome da exceção. */
7
+ public name: string;
5
8
 
6
9
  /** Titulo do erro. */
7
10
  public title: string;
@@ -12,6 +15,7 @@ export default class WaitingChangeException extends Error {
12
15
  constructor(title: string, message: string) {
13
16
  super(message);
14
17
  this.title = title;
18
+ this.name = "";
15
19
  this.message = message;
16
20
  }
17
21
  }
@@ -2,6 +2,9 @@
2
2
  * `WarningException`: Exceção lançada quando o "erro" vindo do backend é caracterizado como warning.
3
3
  */
4
4
  export default class WarningException extends Error {
5
+
6
+ /** Nome da exceção. */
7
+ public name: string;
5
8
 
6
9
  /** Titulo do alerta. */
7
10
  public title: string;
@@ -15,6 +18,7 @@ export default class WarningException extends Error {
15
18
  constructor(title: string, message: string, errorCode: string = "") {
16
19
  super(message);
17
20
  this.title = title;
21
+ this.name = "";
18
22
  this.message = message;
19
23
  this.errorCode = errorCode;
20
24