Exception: Crossbeam::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/crossbeam/error.rb

Overview

Error message that is raised to flag a Crossbeam service error

used to create error messages for Crossbeam

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context = nil) ⇒ Object

Used to initializee an error message

Parameters:

  • context (String, Hash) (defaults to: nil)


15
16
17
18
# File 'lib/crossbeam/error.rb', line 15

def initialize(context = nil)
  @context = context
  super
end

Instance Attribute Details

#contextString (readonly)

Returns Error message associated with StandardError.

Returns:

  • (String)

    Error message associated with StandardError



9
10
11
# File 'lib/crossbeam/error.rb', line 9

def context
  @context
end