Add errors definitions

This commit is contained in:
Sergey Isaev 2020-08-09 19:19:40 +03:00
parent 09791e1035
commit 3e6ae8ac68

View File

@ -0,0 +1,13 @@
use std::ffi::OsString;
#[derive(Debug, Error)]
pub enum LoginError {
#[error("{:?}", _0)]
CannotGetToken(OsString),
#[error("connectin unavalaible {:?}", _0)]
ConnectionUnavalaible(OsString),
#[error("wrong login or password {:?}", _0)]
WrongLoginOrPassword(OsString),
}