Crates.io | from_error_scope |
lib.rs | from_error_scope |
version | 0.0.1 |
source | src |
created_at | 2015-02-15 12:20:26.206506 |
updated_at | 2015-12-11 23:58:51.47213 |
description | Enable scoped conversion between non-local Error types |
homepage | |
repository | https://github.com/hugoduncan/from-error-scope |
max_upload_size | |
id | 1407 |
size | 16,734 |
Enable conversion between non-local Error
types.
When using libraries, your code often needs to convert between
Error
types which aren't part of your local crate. In this
case you can't implement std::error::FromError
.
This is also useful if you need context dependent translation of error types.
Add from_error_scope
to your dependencies:
[dependencies]
from_error_scope = "*"
Copyright 2015 Hugo Duncan
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.