Exception: Utility::ExplicitlyCausedError

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

Overview

For when we want to explicitly set a #cause but can’t

Direct Known Subclasses

PublishingFailedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ ExplicitlyCausedError

Returns a new instance of ExplicitlyCausedError.



89
90
91
# File 'lib/utility/errors.rb', line 89

def initialize(reason)
  @reason = reason
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



87
88
89
# File 'lib/utility/errors.rb', line 87

def reason
  @reason
end