Exception: Wheneverd::DSL::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/wheneverd/dsl/errors.rb

Overview

Base error class for schedule DSL problems.

These errors include the path to the schedule file to make CLI output more actionable.

Direct Known Subclasses

InvalidAtError, InvalidPeriodError, LoadError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, path:) ⇒ Error

Returns a new instance of Error.

Parameters:

  • message (String)
  • path (String)


14
15
16
17
# File 'lib/wheneverd/dsl/errors.rb', line 14

def initialize(message, path:)
  super(message)
  @path = path
end

Instance Attribute Details

#pathString (readonly)

Returns:

  • (String)


10
11
12
# File 'lib/wheneverd/dsl/errors.rb', line 10

def path
  @path
end