class Exception

Overview

Represents errors that occur during application execution.

Exception and its descendants are used to communicate between raise and rescue statements in begin ... end blocks. Exception objects carry information about the exception – its type (the exception’s class name), an optional descriptive string, and optional traceback information. Exception subclasses may add additional information.

Direct Known Subclasses

Defined in:

ext/exception.cr

Instance Method Summary

Instance Method Detail

def span_status_message_set=(span_status_message_set : Bool) #

This adds a flag to an exception, so that underlying code can easily know if this exception has been set in a span status. Otherwise handlers may repeatedly set a whole chain of spans to error state as an exception bubbles up through the span stack.


def span_status_message_set? : Bool #

This adds a flag to an exception, so that underlying code can easily know if this exception has been set in a span status. Otherwise handlers may repeatedly set a whole chain of spans to error state as an exception bubbles up through the span stack.