Vtc.Timecode.ParseError exception (vtc v0.3.2) View Source

Exception returned when there is an error parsing a Timecode value.

Link to this section Summary

Types

t()

Type of Timecode.ParseError

Functions

Returns a message for the error reason.

Link to this section Types

Specs

t() :: %Vtc.Timecode.ParseError{
  __exception__: true,
  reason: :unrecognized_format | :bad_drop_frames
}

Type of Timecode.ParseError

Fields

  • reason: The reason the error occurred must be one of the following:

    • :unrecognized_format: Returned when a string value is not a recognized timecode, runtime, etc. format.
    • :bad_drop_frames: The field value cannot exist in properly formatted drop-frame timecode.

Link to this section Functions

Specs

message(t()) :: String.t()

Returns a message for the error reason.