fix(API): overall improved error handling

* Return `Result<Token, Box<Error>>` type wherever feasible
* increment version to 0.3.5
* remove all usages of depreceated std items
This commit is contained in:
Sebastian Thiel
2015-04-23 13:47:49 +02:00
parent 84454d1736
commit 2cdf8bbf76
7 changed files with 303 additions and 108 deletions

View File

@@ -9,6 +9,12 @@ pub trait Flow : MarkerTrait {
fn type_id() -> FlowType;
}
#[derive(RustcDecodable)]
pub struct JsonError {
pub error: String,
pub error_description: Option<String>,
}
/// Represents all implemented token types
#[derive(Clone, PartialEq, Debug)]
pub enum TokenType {