Exception: AEMO::TimeError Abstract

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/aemo/exceptions/time_error.rb

Overview

This class is abstract.

An exception for time errors.

AEMO::TimeError

Author:

  • Joel Courtney

Since:

  • 0.6.0

Constant Summary collapse

DEFAULT_MESSAGE =

Since:

  • 0.6.0

'Not a valid time'

Instance Method Summary collapse

Constructor Details

#initialize(msg: DEFAULT_MESSAGE) ⇒ AEMO::TimeError

Initialize an TimeError

Parameters:

  • msg (String) (defaults to: DEFAULT_MESSAGE)

    the error message

Since:

  • 0.6.0



16
17
18
# File 'lib/aemo/exceptions/time_error.rb', line 16

def initialize(msg: DEFAULT_MESSAGE)
  super
end