@worldsibu/convector-core-errors
Advanced tools
Comparing version 1.3.8 to 1.3.9-0-alpha.04821d01
@@ -58,2 +58,9 @@ import { BaseError } from './base.error'; | ||
} | ||
export declare class ControllerUndefinedArgumentError extends BaseError { | ||
index: number; | ||
code: string; | ||
description: string; | ||
explanation: string; | ||
constructor(index: number); | ||
} | ||
export declare class ControllerInvalidArgumentError extends BaseError { | ||
@@ -60,0 +67,0 @@ original: Error; |
@@ -113,2 +113,16 @@ "use strict"; | ||
exports.ControllerInvalidInvokeError = ControllerInvalidInvokeError; | ||
var ControllerUndefinedArgumentError = (function (_super) { | ||
tslib_1.__extends(ControllerUndefinedArgumentError, _super); | ||
function ControllerUndefinedArgumentError(index) { | ||
var _this = _super.call(this) || this; | ||
_this.index = index; | ||
_this.code = 'CTRL_UNDEF_ARG_ERR'; | ||
_this.description = 'Undefined argument passed in controller'; | ||
_this.explanation = "\n Undefined argument #" + _this.index + ", use @Optional() if need to omit\n " + chaincodeSideMessage; | ||
_this.message = _super.prototype.getMessage.call(_this, _super.prototype.getOriginal.call(_this)); | ||
return _this; | ||
} | ||
return ControllerUndefinedArgumentError; | ||
}(base_error_1.BaseError)); | ||
exports.ControllerUndefinedArgumentError = ControllerUndefinedArgumentError; | ||
var ControllerInvalidArgumentError = (function (_super) { | ||
@@ -115,0 +129,0 @@ tslib_1.__extends(ControllerInvalidArgumentError, _super); |
{ | ||
"name": "@worldsibu/convector-core-errors", | ||
"version": "1.3.8", | ||
"version": "1.3.9-0-alpha.04821d01", | ||
"description": "Convector Errors", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47975
565
2