pub trait ExceptionExt: 'static {
    fn backtrace_string(&self) -> Option<GString>;
    fn column_number(&self) -> u32;
    fn line_number(&self) -> u32;
    fn message(&self) -> Option<GString>;
    fn name(&self) -> Option<GString>;
    fn source_uri(&self) -> Option<GString>;
    fn report(&self) -> Option<GString>;
    fn to_str(&self) -> GString;
}
Expand description

Trait containing all Exception methods.

Implementors

Exception

Required Methods

Get a string with the exception backtrace.

Returns

the exception backtrace string or None.

Get the column number at which self happened.

Returns

the column number of self.

Get the line number at which self happened.

Returns

the line number of self.

Get the error message of self.

Returns

the self error message.

Get the error name of self

Returns

the self error name.

Get the source URI of self.

Returns

the the source URI of self, or None.

Return a report message of self, containing all the possible details such us source URI, line, column and backtrace, and formatted to be printed.

Returns

a new string with the exception report

Get the string representation of self error.

Returns

the string representation of self.

Implementors