Skip to content

Instantly share code, notes, and snippets.

@bloodyowl
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bloodyowl/8959913 to your computer and use it in GitHub Desktop.
Save bloodyowl/8959913 to your computer and use it in GitHub Desktop.
fucking error

fuckingError

throw new FuckingError("missing stuff")
// logs (╯°□°)╯︵ ┻━┻ : missing stuff

function FuckingError(message){
if(!FuckingError.prototype.isPrototypeOf(this)) {
return FuckingError.call(Object.create(FuckingError.prototype), message)
}
this.name = "(╯°□°)╯︵ ┻━┻ "
this.message = message
return this
}
FuckingError.prototype = Object.create(Error.prototype)
FuckingError.prototype.constructor = FuckingError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment