components
2 years ago
functions
2 years ago
mixins
2 years ago
input-error.js
2 years ago
manager.js
2 years ago
input-error.js
15 lines
| 1 | class ApiInputError extends Error { |
| 2 | constructor( noticeOptions = false, message = '' ) { |
| 3 | super( message ) |
| 4 | |
| 5 | // Maintains proper stack trace for where our error was thrown (only available on V8) |
| 6 | if ( Error.captureStackTrace ) { |
| 7 | Error.captureStackTrace( this, ApiInputError ) |
| 8 | } |
| 9 | |
| 10 | this.name = 'ApiInputError' |
| 11 | this.noticeOptions = noticeOptions |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | export default ApiInputError; |