Exception: Warden::Protocol::ProtocolError
- Inherits:
-
StandardError
- Object
- StandardError
- Warden::Protocol::ProtocolError
- Defined in:
- lib/warden/protocol/base.rb
Overview
Used to wrap around Beefcake errors.
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(cause) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
- #message ⇒ Object
Constructor Details
#initialize(cause) ⇒ ProtocolError
Returns a new instance of ProtocolError.
46 47 48 |
# File 'lib/warden/protocol/base.rb', line 46 def initialize(cause) @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
44 45 46 |
# File 'lib/warden/protocol/base.rb', line 44 def cause @cause end |
Instance Method Details
#message ⇒ Object
50 51 52 |
# File 'lib/warden/protocol/base.rb', line 50 def return @cause. end |