Exception: Card::Error::ServerError
- Inherits:
-
Card::Error
- Object
- StandardError
- Card::Error
- Card::Error::ServerError
- Defined in:
- lib/card/error.rb
Overview
error attributable to code (as opposed to card configuration)
Constant Summary
Constants inherited from Card::Error
Instance Attribute Summary
Attributes inherited from Card::Error
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Card::Error
add_card_errors, card_error_class, #card_message_text, cardify_exception, #initialize, invalid_card_error_class, #message_from_card, report
Constructor Details
This class inherits a constructor from Card::Error
Class Method Details
.status_code ⇒ Object
47 48 49 50 51 |
# File 'lib/card/error.rb', line 47 def self.status_code # Errors with status code 900 are displayed as modal instead of inside # the "card-notice" div`` Card[:debugger]&.content =~ /on/ ? 900 : 500 end |
.view ⇒ Object
43 44 45 |
# File 'lib/card/error.rb', line 43 def self.view Card[:debugger]&.content =~ /on/ ? :debug_server_error : :server_error end |
Instance Method Details
#report ⇒ Object
53 54 55 56 |
# File 'lib/card/error.rb', line 53 def report super card&.notable_exception_raised end |