Created
July 11, 2016 14:20
-
-
Save steida/7e5397cd1cfe629022145095c484d7a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { BaseError } from 'make-error'; | |
| export default class ValidationError extends BaseError { | |
| constructor(name, params = {}) { | |
| super(`ValidationError: ${JSON.stringify({ name, params })}`); | |
| this.name = name; | |
| this.params = params; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment