Exception: ServicePattern::FailedError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



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

def errors
  @errors
end

Instance Method Details

#error_messagesObject



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

def error_messages
  @error_messages ||= @errors.map(&:message)
end

#error_typesObject



8
9
10
# File 'lib/service_pattern/failed_error.rb', line 8

def error_types
  @error_types ||= @errors.map(&:type)
end