Exception: HttpError::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/http_error/error.rb

Overview

InternalServerError is used by all other errors to inherit from

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.messageObject

Returns the value of attribute message.



6
7
8
# File 'lib/http_error/error.rb', line 6

def message
  @message
end

.statusObject

Returns the value of attribute status.



5
6
7
# File 'lib/http_error/error.rb', line 5

def status
  @status
end

Instance Method Details

#errorObject



13
14
15
# File 'lib/http_error/error.rb', line 13

def error
  message || self.class.message
end

#statusObject



9
10
11
# File 'lib/http_error/error.rb', line 9

def status
  self.class.status
end