An exception that is thrown when an invalid value provided for an argument of a function.

Constructor

new(argument:String, ?message:String, ?previous:Exception, ?pos:Null<PosInfos>)

Variables

finalargument:String

An argument name.

Inherited Variables

Defined by PosException

finalposInfos:PosInfos

Position where this exception was created.

Defined by Exception

read onlymessage:String

Exception message.

read onlynative:Any

Native exception, which caused this exception.

read onlyprevious:Null<Exception>

Contains an exception, which was passed to previous constructor argument.

read onlystack:CallStack

The call stack at the moment of the exception creation.

Inherited Methods

Defined by PosException

toString():String

Returns exception message.

Defined by Exception

details():String

Detailed exception description.

Includes message, stack and the chain of previous exceptions (if set).

unwrap():Any

Available on cs