Created
July 9, 2017 01:57
-
-
Save khaosdoctor/eda5440e5cfea833ce3af20aa64f5022 to your computer and use it in GitHub Desktop.
Example error class for medium post
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
/** | |
* Erro de arquivo não encontrado | |
* | |
* @class FileNotFoundException | |
* | |
* @extends {Error} | |
* @memberof module:Errors | |
* @module Errors | |
* @author Lucas Santos | |
* @version 1.0.0 | |
*/ | |
class FileNotFoundException extends Error { | |
constructor (filename) { | |
super(`O arquivo ${filename} não foi encontrado`) | |
this.name = 'FileNotFoundException' | |
} | |
} | |
module.exports = FileNotFoundException |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment