feature/fix-deployment-script
claude/smbcloud-github-app-k9641p
development
feature/apps
feature/build-release
feature/ci-docs
feature/ci-ruby-gems
feature/cicd
feature/completion
feature/dist-nuget
feature/fix-ci-sdk-pypi-rubygem
feature/fix-clippy-on-stable-channel
feature/fix-deployment-script
feature/github-email
feature/gresiq-v1
feature/project-new-structure
feature/rsync-deploy
feature/ruby-runner
feature/sdk-npm
feature/sdk-workflows
feature/smbcloud-cli-release-npm
feature/smbcloud-deploy
feature/wasm
main
release/v0.7.4
| 1 | use thiserror::Error; |
| 2 | |
| 3 | #[derive(Debug, Error)] |
| 4 | pub enum GresiqError { |
| 5 | /// The HTTP layer failed before we even got a response — network down, |
| 6 | /// DNS failure, TLS handshake, that sort of thing. |
| 7 | #[error("request failed: {0}")] |
| 8 | Http(#[from] reqwest::Error), |
| 9 | |
| 10 | /// The gateway replied with a non-2xx status. The message is whatever |
| 11 | /// the server put in the response body, or the HTTP reason phrase if |
| 12 | /// the body wasn't readable. |
| 13 | #[error("GresIQ API error {status}: {message}")] |
| 14 | Api { status: u16, message: String }, |
| 15 | } |