@@ -37,20 +37,6 @@ pub enum FrameError {
37
37
38
38
#[ derive( Error , Debug ) ]
39
39
pub enum ParseError {
40
- #[ error( transparent) ]
41
- CqlErrorParseError ( #[ from] CqlErrorParseError ) ,
42
- #[ error( transparent) ]
43
- CqlAuthChallengeParseError ( #[ from] CqlAuthChallengeParseError ) ,
44
- #[ error( transparent) ]
45
- CqlAuthSuccessParseError ( #[ from] CqlAuthSuccessParseError ) ,
46
- #[ error( transparent) ]
47
- CqlAuthenticateParseError ( #[ from] CqlAuthenticateParseError ) ,
48
- #[ error( transparent) ]
49
- CqlSupportedParseError ( #[ from] CqlSupportedParseError ) ,
50
- #[ error( transparent) ]
51
- CqlEventParseError ( #[ from] CqlEventParseError ) ,
52
- #[ error( transparent) ]
53
- CqlResultParseError ( #[ from] CqlResultParseError ) ,
54
40
#[ error( "Low-level deserialization failed: {0}" ) ]
55
41
LowLevelDeserializationError ( #[ from] LowLevelDeserializationError ) ,
56
42
#[ error( "Could not serialize frame: {0}" ) ]
@@ -69,6 +55,27 @@ pub enum ParseError {
69
55
CqlTypeError ( #[ from] CqlTypeError ) ,
70
56
}
71
57
58
+ /// An error type returned when deserialization of CQL
59
+ /// server response fails.
60
+ #[ non_exhaustive]
61
+ #[ derive( Error , Debug , Clone ) ]
62
+ pub enum CqlResponseParseError {
63
+ #[ error( "Failed to deserialize ERROR response: {0}" ) ]
64
+ CqlErrorParseError ( #[ from] CqlErrorParseError ) ,
65
+ #[ error( "Failed to deserialize AUTH_CHALLENGE response: {0}" ) ]
66
+ CqlAuthChallengeParseError ( #[ from] CqlAuthChallengeParseError ) ,
67
+ #[ error( "Failed to deserialize AUTH_SUCCESS response: {0}" ) ]
68
+ CqlAuthSuccessParseError ( #[ from] CqlAuthSuccessParseError ) ,
69
+ #[ error( "Failed to deserialize AUTHENTICATE response: {0}" ) ]
70
+ CqlAuthenticateParseError ( #[ from] CqlAuthenticateParseError ) ,
71
+ #[ error( "Failed to deserialize SUPPORTED response: {0}" ) ]
72
+ CqlSupportedParseError ( #[ from] CqlSupportedParseError ) ,
73
+ #[ error( "Failed to deserialize EVENT response: {0}" ) ]
74
+ CqlEventParseError ( #[ from] CqlEventParseError ) ,
75
+ #[ error( transparent) ]
76
+ CqlResultParseError ( #[ from] CqlResultParseError ) ,
77
+ }
78
+
72
79
/// An error type returned when deserialization of ERROR response fails.
73
80
#[ non_exhaustive]
74
81
#[ derive( Error , Debug , Clone ) ]
0 commit comments