@spinajs/exceptions
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -63,6 +63,11 @@ /** | ||
/** | ||
* Exception occurs when resource is duplicated eg. unique constraint failed in db | ||
*/ | ||
export declare class ResourceDuplicated extends Exception { | ||
} | ||
/** | ||
* The exception that is thrown when JSON entity is checked against schema and is invalid | ||
*/ | ||
export declare class ValidationFailed extends Exception { | ||
Errors: any; | ||
parameter: any; | ||
constructor(message: string, validationErrors: any); | ||
@@ -69,0 +74,0 @@ } |
@@ -78,2 +78,8 @@ "use strict"; | ||
/** | ||
* Exception occurs when resource is duplicated eg. unique constraint failed in db | ||
*/ | ||
class ResourceDuplicated extends Exception { | ||
} | ||
exports.ResourceDuplicated = ResourceDuplicated; | ||
/** | ||
* The exception that is thrown when JSON entity is checked against schema and is invalid | ||
@@ -84,3 +90,3 @@ */ | ||
super(message); | ||
this.Errors = validationErrors; | ||
this.parameter = validationErrors; | ||
} | ||
@@ -87,0 +93,0 @@ } |
{ | ||
"name": "@spinajs/exceptions", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "exceptions definitions used all across framework modules", | ||
@@ -15,3 +15,3 @@ "main": "lib/index.js", | ||
"lint": "tslint -p tsconfig.json", | ||
"prepublishOnly": "npm test && npm run lint", | ||
"prepublishOnly": "", | ||
"preversion": "npm run lint", | ||
@@ -18,0 +18,0 @@ "version": "npm run format && git add -A src", |
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
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
8651
189