new

Function new 

Source
pub fn new(kind: ErrorKind) -> Error
Expand description

Create a new Error of the passed kind.