Easily extend the native
Error
for custom use within Imba
npm install imba-error --save
import Errorable from 'imba-error'
class CustomError < Errorable
def initialize msg = 'Default Custom Message!'
super msg
# somewhere else...
throw CustomError.new "Hey! Don't do that!"
# outputs:
# CustomError {message: "Hey! Don't do that!", name: "CustomError", stack: (...)}
Type: string
Default: ''
The message to throw
MIT © Luke Edwards