class Pegasus::Error::GeneralException

Overview

An exception thrown at some point in the entire lifetime of Pegasus. This is very vague, and should be used in cases where it cannot be known what the surrounding code is doing at the time.

Defined in:

pegasus/error.cr

Instance Method Summary

Instance methods inherited from class Pegasus::Error::PegasusException

context_data : Array(ErrorContext) context_data, get_location_name get_location_name, print(io) print, print_extra(io) print_extra

Constructor methods inherited from class Pegasus::Error::PegasusException

new(description : String, context_data : Array(Pegasus::Error::ErrorContext) = [] of ErrorContext, internal : Bool = false) new

Instance Method Detail

def get_location_name #
Description copied from class Pegasus::Error::PegasusException

Get the "location" of the error, which is used to report to the user when in the process the error occured.


[View source]