Exception thrown when a string or some other data does not have an expected format and cannot be parsed or processed.

Implements

Properties

message String
read-only

A message describing the format error.

offset int
read-only

The offset in source where the error was detected.

source → dynamic
read-only

The actual source input which caused the error.

Constructors

FormatException([String message = "", source, int offset])
const

Creates a new FormatException with an optional error message.

Methods

toString() → String

Returns a description of the format exception.