Class: Glia::Errors::RouteNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/glia/errors/client_errors.rb

Constant Summary

Constants inherited from Error

Error::SNAKE_CASE_REGEX

Instance Attribute Summary

Attributes inherited from Error

#error_details, #message, #ref, #type

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(message: nil) ⇒ RouteNotFoundError

Returns a new instance of RouteNotFoundError.



232
233
234
235
236
237
238
# File 'lib/glia/errors/client_errors.rb', line 232

def initialize(message: nil)
  super(
    type: ROUTE_NOT_FOUND_ERROR,
    ref: create_ref(ROUTE_NOT_FOUND_ERROR),
    message: message || 'Route not found'
  )
end