std::Panic::Frame
Frame
Represents a panic frame with error context and location information
Constructors
Frame
Creates a panic frame with object, filename, and line number
fn Frame(obj: T, filename: const char*, lineno: usize) requires <T>;
Frame
Creates a panic frame with object, filename as string, and line number
fn Frame(obj: T, filename: string, lineno: usize) requires <T>;
Frame
Creates a panic frame from another frame (noreturn)
Frame(Frame& obj, const string& filename, usize lineno)
Frame
Creates a panic frame from another frame (move, noreturn)
Frame(Frame&& obj, const string& filename, usize lineno)
Operators
operator panic
Panic operator used in helix code as ‘panic …’
op panic(self) -> void
Methods
file
Returns the filename where the panic occurred
file(self) -> string
line
Returns the line number where the panic occurred
line(self) -> usize
reason
Returns the reason for the panic
reason(self) -> string
get_context
Returns the panic context
get_context(self) -> *FrameContext