@senhainfo/shared-utils 1.1.2 → 1.1.3

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,7 @@ export * from "./app-exception";
2
2
  export * from "./bad-request-exception";
3
3
  export * from "./forbidden-exception";
4
4
  export * from "./inactive-exception";
5
+ export * from "./internal-server-exception";
5
6
  export * from "./invalid-credentials-exception";
6
7
  export * from "./invalid-token-exception";
7
8
  export * from "./missing-token-exception";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC"}
@@ -18,6 +18,7 @@ __exportStar(require("./app-exception"), exports);
18
18
  __exportStar(require("./bad-request-exception"), exports);
19
19
  __exportStar(require("./forbidden-exception"), exports);
20
20
  __exportStar(require("./inactive-exception"), exports);
21
+ __exportStar(require("./internal-server-exception"), exports);
21
22
  __exportStar(require("./invalid-credentials-exception"), exports);
22
23
  __exportStar(require("./invalid-token-exception"), exports);
23
24
  __exportStar(require("./missing-token-exception"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,0DAAwC;AACxC,wDAAsC;AACtC,uDAAqC;AACrC,kEAAgD;AAChD,4DAA0C;AAC1C,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,0DAAwC;AACxC,wDAAsC;AACtC,uDAAqC;AACrC,8DAA4C;AAC5C,kEAAgD;AAChD,4DAA0C;AAC1C,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,gEAA8C"}
@@ -0,0 +1,12 @@
1
+ import { AppException, AppExceptionProps } from "./app-exception";
2
+ export declare class InternalServerException extends AppException {
3
+ /**
4
+ * Construtor do erro "InternalServerException"
5
+ *
6
+ * @param name - Nome do erro @default AppExceptionEnum.INTERNAL_SERVER_ERROR
7
+ * @param message - Mensagem de erro @default "Erro ao processar requisição"
8
+ * @param details - Detalhes do erro
9
+ */
10
+ constructor(props?: AppExceptionProps);
11
+ }
12
+ //# sourceMappingURL=internal-server-exception.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-server-exception.d.ts","sourceRoot":"","sources":["../../src/exceptions/internal-server-exception.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAoB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpF,qBAAa,uBAAwB,SAAQ,YAAY;IACvD;;;;;;OAMG;gBACS,KAAK,CAAC,EAAE,iBAAiB;CAUtC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InternalServerException = void 0;
4
+ const http_status_enum_1 = require("../http-status-enum");
5
+ const app_exception_1 = require("./app-exception");
6
+ class InternalServerException extends app_exception_1.AppException {
7
+ /**
8
+ * Construtor do erro "InternalServerException"
9
+ *
10
+ * @param name - Nome do erro @default AppExceptionEnum.INTERNAL_SERVER_ERROR
11
+ * @param message - Mensagem de erro @default "Erro ao processar requisição"
12
+ * @param details - Detalhes do erro
13
+ */
14
+ constructor(props) {
15
+ if (!props) {
16
+ props = {
17
+ name: app_exception_1.AppExceptionEnum.INTERNAL_SERVER_ERROR,
18
+ message: "Erro ao processar requisição",
19
+ };
20
+ }
21
+ super(props.name, props.message, http_status_enum_1.HttpStatusCodes.INTERNAL_SERVER_ERROR, props.details);
22
+ }
23
+ }
24
+ exports.InternalServerException = InternalServerException;
25
+ //# sourceMappingURL=internal-server-exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-server-exception.js","sourceRoot":"","sources":["../../src/exceptions/internal-server-exception.ts"],"names":[],"mappings":";;;AAAA,0DAAsD;AACtD,mDAAoF;AAEpF,MAAa,uBAAwB,SAAQ,4BAAY;IACvD;;;;;;OAMG;IACH,YAAY,KAAyB;QACnC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,KAAK,GAAG;gBACN,IAAI,EAAE,gCAAgB,CAAC,qBAAqB;gBAC5C,OAAO,EAAE,8BAA8B;aACxC,CAAC;QACJ,CAAC;QAED,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,kCAAe,CAAC,qBAAqB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CACF;AAlBD,0DAkBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@senhainfo/shared-utils",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "repository": "https://github.com/senha-info/senha-shared-utils.git",
5
5
  "author": "Bruno Gaspar <bruninhoogaspar@gmail.com>",
6
6
  "license": "MIT",