summaryrefslogtreecommitdiff
path: root/src/Exception/DumpException.coffee
blob: 9cc6c27ba4c60d6316a04dd5d4dd0d9d46af80ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12

class DumpException extends Error

    constructor: (@message, @parsedLine, @snippet) ->

    toString: ->
        if @parsedLine? and @snippet?
            return '<DumpException> ' + @message + ' (line ' + @parsedLine + ': \'' + @snippet + '\')'
        else
            return '<DumpException> ' + @message

module.exports = DumpException