Skip to content

Instantly share code, notes, and snippets.

@khaosdoctor
Created July 9, 2017 01:57
Show Gist options
  • Save khaosdoctor/eda5440e5cfea833ce3af20aa64f5022 to your computer and use it in GitHub Desktop.
Save khaosdoctor/eda5440e5cfea833ce3af20aa64f5022 to your computer and use it in GitHub Desktop.
Example error class for medium post
/**
* 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