abstract class ExceptionPage

Included Modules

Defined in:

exception_page.cr
exception_page/version.cr

Constant Summary

VERSION = "0.5.0"

Constructors

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(exception : Exception, method : String, path : String, status : HTTP::Status, title : String | Nil = nil, params : URI::Params = URI::Params.new, headers : HTTP::Headers = HTTP::Headers.new, cookies : HTTP::Cookies = HTTP::Cookies.new, message : String | Nil = nil, url : String | Nil = nil) #

[View source]
def self.new(context : HTTP::Server::Context, exception : 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]