@massimo-cassandro/minimo 1.0.2 → 1.1.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.
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
// uso
|
|
3
|
+
// throw new ValidationError('Sono presenti cicli duplicati', campiErrore );
|
|
4
|
+
|
|
5
|
+
export class ValidationError extends Error {
|
|
6
|
+
constructor(message, fields) {
|
|
7
|
+
super(message); // Passa il messaggio alla classe Error originale
|
|
8
|
+
this.name = 'ValidationError';
|
|
9
|
+
this.fields = fields; // Parametro custom
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|