abstract class ExceptionPage

Included Modules

Defined in:

exception_page.cr
exception_page/version.cr

Constant Summary

VERSION = {{ (`shards version /srv/crystaldoc.info/github-crystal-loot-exception_page-v0.2.0/src/exception_page`).chomp.stringify }}

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module ExceptionPage::Helpers

css_class_for_frame(frame) : String css_class_for_frame, label_for_frame(frame) : String label_for_frame

Constructor Detail

def self.new(context : HTTP::Server::Context, ex : Exception) #

[View source]

Class Method Detail

def self.for_runtime_exception(context : HTTP::Server::Context, ex : Exception) #

[View source]

Instance Method Detail

def backtracer : Backtracer::Configuration | Nil #

Override this method to provide custom Backtracer configuration


[View source]
def extra_javascript #

Override this method to add extra javascript to the page


[View source]
def project_url : String | Nil #

Add an optional link to your project


[View source]
def stack_trace_heading_html #

Override this method to add extra HTML to the top of the stack trace heading


[View source]
abstract def styles : Styles #

[View source]
def to_s(__io__ : IO) : Nil #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]