class Card::Error::ServerError
error attributable to code (as opposed to card configuration)
Public Class Methods
debugger_on?()
click to toggle source
# File lib/card/error.rb, line 56 def self.debugger_on? Card::Codename[:debugger] && Card[:debugger]&.content =~ /on/ end
status_code()
click to toggle source
# File lib/card/error.rb, line 50 def self.status_code # Errors with status code 900 are displayed as modal instead of inside # the "card-notice" div`` debugger_on? ? 900 : 500 end
view()
click to toggle source
# File lib/card/error.rb, line 46 def self.view debugger_on? ? :debug_server_error : :server_error end
Public Instance Methods
report()
click to toggle source
Calls superclass method
Card::Error::report
# File lib/card/error.rb, line 60 def report super card&.notable_exception_raised end