Exception: ValidateMyRoutes::Errors::ValidationRaisedAnExceptionError

Inherits:
ValidationError
  • Object
show all
Defined in:
lib/validate_my_routes/errors.rb

Overview

Raised when exceptions occurs in validation block

Instance Attribute Summary

Attributes inherited from ValidationError

#message, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(custom_exception, status_code) ⇒ ValidationRaisedAnExceptionError

Returns a new instance of ValidationRaisedAnExceptionError.



37
38
39
# File 'lib/validate_my_routes/errors.rb', line 37

def initialize(custom_exception, status_code)
  super(custom_exception.to_s, status_code)
end