Exception: Tilia::Http::HttpException

Inherits:
Exception
  • Object
show all
Defined in:
lib/tilia/http/http_exception.rb

Overview

An exception representing a HTTP error.

This can be used as a generic exception in your application, if you’d like to map HTTP errors to exceptions.

If you’d like to use this, create a new exception class, extending Exception and implementing this interface.

Direct Known Subclasses

ClientHttpException

Instance Method Summary collapse

Instance Method Details

#http_statusString?

The http status code for the error.

This may either be just the number, or a number and a human-readable message, separated by a space.

Returns:

  • (String, nil)


17
18
# File 'lib/tilia/http/http_exception.rb', line 17

def http_status
end