class Exception
- Exception
- Reference
- Object
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
- OpenTelemetry::Meter::DuplicateInstrumentError
- OpenTelemetry::Meter::InstrumentNameError
- OpenTelemetry::Meter::InstrumentUnitError
- OpenTelemetry::Trace::InvalidSpanInSpanStackError
Defined in:
ext/exception.crInstance Method Summary
-
#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.
-
#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.
Instance Method Detail
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.
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.