Exception: Pastee::Errors::BadRequestError

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

Overview

Error for error codes 400, 404, 405, and 406.

Instance Method Summary collapse

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

#messageObject



21
22
23
# File 'lib/pastee/errors.rb', line 21

def message
  "Error code #{@code}: Bad request."
end