feat(engine): infrastructure

* allow usage of cmn.rs for common types (like Error types)
* instantiate an engine and handle errors, in an initial quick and dirty
  way.

 Fixes #52
This commit is contained in:
Sebastian Thiel
2015-04-13 17:08:50 +02:00
parent b64722cca8
commit ca8e8c0622
4 changed files with 56 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
#[derive(Debug)]
pub enum ArgumentError {
ConfigurationDirectoryInaccessible(String),
}
#[derive(Debug)]
pub struct InvalidOptionsError {
pub issues: Vec<ArgumentError>,
pub exit_code: i32,
}