Exception: Leash::AuthError

Inherits:
Error
  • Object
show all
Defined in:
lib/leash/auth.rb

Overview

Raised when authentication fails (missing cookie, invalid/expired token, etc.)

Instance Attribute Summary

Attributes inherited from Error

#code, #connect_url

Instance Method Summary collapse

Constructor Details

#initialize(message = "Authentication failed") ⇒ AuthError

Returns a new instance of AuthError.



9
10
11
# File 'lib/leash/auth.rb', line 9

def initialize(message = "Authentication failed")
  super(message, code: "auth_error")
end