Struct ethcore_io::PanicHandler [] [src]

pub struct PanicHandler { /* fields omitted */ }

Structure that allows to catch panics and notify listeners

Methods

impl PanicHandler
[src]

Creates new PanicHandler wrapped in Arc

Creates new PanicHandler

Invoke closure and catch any possible panics. In case of panic notifies all listeners about it.

Notifies all listeners in case there is a panic. You should use catch_panic instead of calling this method explicitly.

Trait Implementations

impl Default for PanicHandler
[src]

Returns the "default value" for a type. Read more

impl MayPanic for PanicHandler
[src]

closure will be invoked whenever panic in thread is caught