@projetoacbr/acbrlib-base-node 1.0.8 → 1.0.10
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/dist/src/index.js +2 -3
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -381,8 +381,7 @@ class ACBrLibBaseMT {
|
|
|
381
381
|
if (!this._isResultErrorCode(result)) {
|
|
382
382
|
return;
|
|
383
383
|
}
|
|
384
|
-
let errorMessage = this.#isInitialized()
|
|
385
|
-
? this.ultimoRetorno() : "Biblioteca não inicializada";
|
|
384
|
+
let errorMessage = this.#isInitialized() ? `${result}: ${this.ultimoRetorno()}` : `${result}: Biblioteca não inicializada`;
|
|
386
385
|
switch (result) {
|
|
387
386
|
case ACBrLibResultCodes_1.ACBrLibResultCodes.ErrLibNaoInicializada:
|
|
388
387
|
throw new exception_1.ACBrLibLibNaoInicializadaError("Erro ao inicializar " + this.constructor.name);
|
|
@@ -418,7 +417,7 @@ class ACBrLibBaseMT {
|
|
|
418
417
|
throw new exception_1.ACBrLibParametroInvalidoError(errorMessage);
|
|
419
418
|
break;
|
|
420
419
|
case ACBrLibResultCodes_1.ACBrLibResultCodes.ErrExecutandoMetodo:
|
|
421
|
-
throw new exception_1.
|
|
420
|
+
throw new exception_1.ACBrLibExecutandoMetodoError(errorMessage);
|
|
422
421
|
break;
|
|
423
422
|
default:
|
|
424
423
|
// se a exceção não é uma exceção comum a todas as bibliotecas, exibe a mensagem de erro
|