File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 3
3
## Unreleased
4
4
5
5
- Expose the ` spec::ClientCredentialsFlow::token_url ` field.
6
+ - Rename ` Error::{SemVerError => Semver} ` variant.
6
7
7
8
## 0.12.1
8
9
Original file line number Diff line number Diff line change @@ -9,15 +9,19 @@ use crate::spec::Error as SpecError;
9
9
/// Top-level errors.
10
10
#[ derive( Debug , Display , Error , From ) ]
11
11
pub enum Error {
12
+ /// I/O error.
12
13
#[ display( "I/O error" ) ]
13
14
Io ( io:: Error ) ,
14
15
16
+ /// YAML error.
15
17
#[ display( "YAML error" ) ]
16
18
Yaml ( serde_yml:: Error ) ,
17
19
20
+ /// JSON error.
18
21
#[ display( "JSON error" ) ]
19
22
Serialize ( serde_json:: Error ) ,
20
23
24
+ /// Spec error.
21
25
#[ display( "Spec error" ) ]
22
26
Spec ( SpecError ) ,
23
27
}
Original file line number Diff line number Diff line change 1
1
use derive_more:: derive:: { Display , Error , From } ;
2
- use semver:: { Error as SemVerError , Version } ;
2
+ use semver:: { Error as SemverError , Version } ;
3
3
4
4
use crate :: spec:: { r#ref:: RefError , schema:: Error as SchemaError } ;
5
5
6
- /// Spec Errors
6
+ /// Spec errors.
7
7
#[ derive( Debug , Display , Error , From ) ]
8
8
pub enum Error {
9
+ /// Reference error.
9
10
#[ display( "Reference error" ) ]
10
11
Ref ( RefError ) ,
11
12
13
+ /// Schema error.
12
14
#[ display( "Schema error" ) ]
13
15
Schema ( SchemaError ) ,
14
16
17
+ /// Semver error.
15
18
#[ display( "Semver error" ) ]
16
- SemVerError ( SemVerError ) ,
19
+ Semver ( SemverError ) ,
17
20
21
+ /// Unsupported spec file version.
18
22
#[ display( "Unsupported spec file version ({})" , _0) ]
19
23
UnsupportedSpecFileVersion ( #[ error( not( source) ) ] Version ) ,
20
24
}
You can’t perform that action at this time.
0 commit comments