mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Ability to pass hints to argument errors.
This commit is contained in:
parent
2afc7c830a
commit
478cad02d6
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ Vector = require './vector'
|
|||
|
||||
module.exports.ArgumentError = class ArgumentError extends Error
|
||||
@className: 'ArgumentError'
|
||||
constructor: (@message, @functionName, @argumentName, @intendedType, @actualValue, @numArguments) ->
|
||||
constructor: (@message, @functionName, @argumentName, @intendedType, @actualValue, @numArguments, @hint) ->
|
||||
super message
|
||||
@name = 'ArgumentError'
|
||||
if Error.captureStackTrace?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue