Exception: AEMO::InvalidNMIAllocationType Abstract

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

Overview

This class is abstract.

An exception representing an invalid NMI allocation type

AEMO::InvalidNMIAllocationType

Author:

  • Stuart Auld

Since:

  • 0.3.0

Constant Summary collapse

DEFAULT_MESSAGE =

Since:

  • 0.3.0

'Not a valid allocation type, try one of ' \
"#{AEMO::NMI::Allocation::SUPPORTED_TYPES.join(' |')}".freeze

Instance Method Summary collapse

Constructor Details

#initialize(msg = DEFAULT_MESSAGE) ⇒ AEMO::InvalidNMIAllocationType

Initialize an InvalidNMIAllocationType

Parameters:

  • msg (String) (defaults to: DEFAULT_MESSAGE)

    the error message

Since:

  • 0.3.0



17
18
19
# File 'lib/aemo/exceptions/invalid_nmi_allocation_type.rb', line 17

def initialize(msg = DEFAULT_MESSAGE)
  super
end