Exception: LD::Patch::Error
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/ld-patch-a8edc852261e/lib/ld/patch.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
The status code associated with this error.
Instance Method Summary collapse
-
#initialize(message, **options) ⇒ Error
constructor
Initializes a new patch error instance.
Constructor Details
#initialize(message, **options) ⇒ Error
Initializes a new patch error instance.
45 46 47 48 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/ld-patch-a8edc852261e/lib/ld/patch.rb', line 45 def initialize(, **) @code = .fetch(:status_code, 422) super(.to_s) end |
Instance Attribute Details
#code ⇒ Object (readonly)
The status code associated with this error
37 38 39 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/ld-patch-a8edc852261e/lib/ld/patch.rb', line 37 def code @code end |