Exception: Pastee::Errors::BadRequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Pastee::Errors::BadRequestError
- Defined in:
- lib/pastee/errors.rb
Overview
Error for error codes 400, 404, 405, and 406.
Instance Method Summary collapse
-
#initialize(code) ⇒ BadRequestError
constructor
A new instance of BadRequestError.
- #message ⇒ Object
Constructor Details
#initialize(code) ⇒ BadRequestError
Returns a new instance of BadRequestError.
17 18 19 |
# File 'lib/pastee/errors.rb', line 17 def initialize(code) @code = code end |
Instance Method Details
#message ⇒ Object
21 22 23 |
# File 'lib/pastee/errors.rb', line 21 def "Error code #{@code}: Bad request." end |