Exception: Negroni::TokenNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/negroni/token_not_found.rb

Overview

Raised when a token is bad

Class Method Summary collapse

Class Method Details

.exception(object) ⇒ Object

Override for better ‘raise` calls

Parameters:

  • object (Object)

    whatever you want



9
10
11
# File 'lib/negroni/token_not_found.rb', line 9

def self.exception(object)
  super "The record #{object} could not be found."
end