pub fn new<E>(error: E) -> Exception where
        E: Error + Send + Sync + 'static
    {
        Exception::construct(error, TypeId::of::<E>())
    }
/// Create a new exception from any error type.
///
/// The error type must be threadsafe and `'static`, so that the `Exception` will be as well.
///
/// If the error type does not provide a backtrace, a backtrace will be created here to ensure
/// that a backtrace exists.
Create a new exception from any error type.
The error type must be threadsafe and `'static`, so that the `Exception` will be as well.

If the error type does not provide a backtrace, a backtrace will be created here to ensure
that a backtrace exists.
Create a new exception from any error type . The error type must be threadsafe and ` ' static ` so that the ` Exception ` will be as well . If the error type does not provide a backtrace a backtrace will be created here to ensure that a backtrace exists .
pub fn new<E>(error: E) -> Exception where
        E: Error + Send + Sync + 'static
    {
        Exception::construct(error, TypeId::of::<E>())
    }
pub fn new < E > ( error : E ) -> Exception where E : Error + Send + Sync + ' static { Exception :: construct ( error , TypeId :: of :: < E > ( ) ) }
Create a new exception from any error type.
Create a new exception from any error type .
error
E