Exception: Sxn::Error

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

Overview

Base error class for all Sxn-specific errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, exit_code: 1) ⇒ Error

Returns a new instance of Error.



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

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

Instance Attribute Details

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



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

def exit_code
  @exit_code
end