abstract class ExceptionPage
- ExceptionPage
- Reference
- Object
Included Modules
Defined in:
exception_page.crexception_page/version.cr
Constant Summary
-
VERSION =
"0.5.0"
Constructors
- .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)
- .new(context : HTTP::Server::Context, exception : Exception)
Instance Method Summary
-
#backtracer : Backtracer::Configuration | Nil
Override this method to provide custom
Backtracer
configuration -
#extra_javascript
Override this method to add extra javascript to the page
-
#project_url : String | Nil
Add an optional link to your project
-
#stack_trace_heading_html
Override this method to add extra HTML to the top of the stack trace heading
- #styles : Styles
-
#to_s(__io__ : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
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)
#
Instance Method Detail
def backtracer : Backtracer::Configuration | Nil
#
Override this method to provide custom Backtracer
configuration
def stack_trace_heading_html
#
Override this method to add extra HTML to the top of the stack trace heading
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>