Exception: Mountapi::Error::RouteNotFound

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

Instance Method Summary collapse

Constructor Details

#initialize(url, method) ⇒ RouteNotFound

Returns a new instance of RouteNotFound.



4
5
6
7
8
# File 'lib/mountapi/error/route_not_found.rb', line 4

def initialize(url, method)
  @url = url
  @method = method
  super(title)
end

Instance Method Details

#to_json_apiObject



10
11
12
13
14
15
# File 'lib/mountapi/error/route_not_found.rb', line 10

def to_json_api
  {
    title: title,
    status: 404
  }
end