Exception: Expressir::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/expressir/errors.rb

Overview

Base error class with details support

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, details: nil) ⇒ Error

Returns a new instance of Error.



8
9
10
11
# File 'lib/expressir/errors.rb', line 8

def initialize(message = nil, details: nil)
  @details = details
  super(message)
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



6
7
8
# File 'lib/expressir/errors.rb', line 6

def details
  @details
end