Fork me on GitHub

Now on: joopl.ArgumentException

Extends joopl.Exception

Represents an exception that occurs when some method argument is missing or invalid

Please read more about exception handling by following this link to "Exception handling best practices"

Constructor

joopl.ArgumentException

(
  • argName
  • reason
)

Defined in src\joopl.js:1561

Parameters:

  • argName String

    The affected argument name

  • reason String

    (optional) A reason text explaining what was wrong with the affected argument

Example:

throw new $global.joopl.ArgumentException({ argName: "someArgument"});

Methods

toString

() String

Returns the exception message plus the stack trace as a concatenated string

Returns:

String:

The exception message plus the stack trace as a concatenated string

Properties

argName

String

Defined in src\joopl.js:1588

Gets the affected argument name

error

Error

Gets underlying Error instance

innerException

Exception

Gets an inner exception (optional) which provides information about the sorrounding one

message

String

Gets the human-readable reason text for this exception

stackTrace

Array

Gets the exception's stack trace as an array where each index is a code line