Exception: SHACL::Error
- Inherits:
-
StandardError
- Object
- StandardError
- SHACL::Error
- Defined in:
- lib/shacl.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 error instance.
Constructor Details
#initialize(message, **options) ⇒ Error
Initializes a new error instance.
90 91 92 93 |
# File 'lib/shacl.rb', line 90 def initialize(, **) @code = .fetch(:status_code, 422) super(.to_s) end |
Instance Attribute Details
#code ⇒ Object (readonly)
The status code associated with this error
82 83 84 |
# File 'lib/shacl.rb', line 82 def code @code end |