Exception: BlueFactory::InvalidRequestError
- Inherits:
-
StandardError
- Object
- StandardError
- BlueFactory::InvalidRequestError
- Defined in:
- lib/blue_factory/errors.rb
Overview
Raised during request processing if some of the parameters are invalid. The error is turned into a "400 Bad Request" response send to the AppView.
Instance Attribute Summary collapse
-
#error_type ⇒ String?
readonly
Machine-readable error identifier.
Instance Method Summary collapse
-
#initialize(message, error_type = "InvalidRequest") ⇒ InvalidRequestError
constructor
A new instance of InvalidRequestError.
Constructor Details
#initialize(message, error_type = "InvalidRequest") ⇒ InvalidRequestError
Returns a new instance of InvalidRequestError.
48 49 50 51 |
# File 'lib/blue_factory/errors.rb', line 48 def initialize(, error_type = "InvalidRequest") super() @error_type = error_type end |
Instance Attribute Details
#error_type ⇒ String? (readonly)
Returns machine-readable error identifier.
43 44 45 |
# File 'lib/blue_factory/errors.rb', line 43 def error_type @error_type end |