pub enum Error {
InvalidApiToken {
source: InvalidHeaderValue,
},
ErrorBuildingClient {
source: Error,
},
RequestFailed {
source: Error,
},
ResponseIoError {
source: Error,
},
JsonParseError {
source: Error,
},
UnexpectedResponse {
response: Object,
},
ApiError {
error: ErrorResponse,
},
}
Expand description
An wrapper Error type for all errors produced by the NotionApi
client.
Variants
InvalidApiToken
Fields
source: InvalidHeaderValue
ErrorBuildingClient
Fields
source: Error
RequestFailed
Fields
source: Error
ResponseIoError
Fields
source: Error
JsonParseError
Fields
source: Error
UnexpectedResponse
Fields
response: Object
ApiError
Fields
error: ErrorResponse
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more