Class: ServicePattern::FailError

Inherits:
Object
  • Object
show all
Defined in:
lib/service_pattern/fail_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, type: nil) ⇒ FailError

Returns a new instance of FailError.



4
5
6
7
# File 'lib/service_pattern/fail_error.rb', line 4

def initialize(message:, type: nil)
  @message = message
  @type = type
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



2
3
4
# File 'lib/service_pattern/fail_error.rb', line 2

def message
  @message
end

#typeObject (readonly)

Returns the value of attribute type.



2
3
4
# File 'lib/service_pattern/fail_error.rb', line 2

def type
  @type
end