Skip to content

Instantly share code, notes, and snippets.

@tailhook
Created September 21, 2015 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tailhook/635301e241b580f75aeb to your computer and use it in GitHub Desktop.
Save tailhook/635301e241b580f75aeb to your computer and use it in GitHub Desktop.
quick-error-example
#[macro_use] extern crate quick_error;
quick_error! {
#[derive(Debug)]
pub enum SomeError {
Io(err: io::Error) {
from()
display("I/O error: {}", err)
description(err.description())
}
ApplicationError
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment