pub fn new(cause: T, status: StatusCode) -> Self {
        InternalError {
            cause,
            status: InternalErrorType::Status(status),
        }
    }
/// Constructs an `InternalError` with given status code.
Constructs an `InternalError` with given status code.
Constructs an ` InternalError ` with given status code .
pub fn new(cause: T, status: StatusCode) -> Self {
        InternalError {
            cause,
            status: InternalErrorType::Status(status),
        }
    }
pub fn new ( cause : T , status : StatusCode ) -> Self { InternalError { cause , status : InternalErrorType :: Status ( status ) , } }
Constructs an `InternalError` with given status code.
Constructs an ` InternalError ` with given status code .
cause
T
status
StatusCode
cause
T
status
StatusCode