Drand Error
Types
Link copied to clipboard
class InvalidBeacon(val beaconID: String, val beaconRound: Long, message: String = "Invalid beacon (", cause: Throwable? = null) : DrandError
Invalid beacon format or value
Link copied to clipboard
Bad Request
Link copied to clipboard
class NetworkError(message: String = "Network request failed", cause: Throwable? = null) : DrandError
Network connectivity issues (timeouts, DNS failures, etc.)
Link copied to clipboard
Resource not found (404)
Link copied to clipboard
class ParseError(message: String = "Failed to parse response", cause: Throwable? = null, val details: String? = null) : DrandError
Failed to parse or deserialize the API response
Link copied to clipboard
Too many requests
Link copied to clipboard
class ServerError(val statusCode: Int, message: String = "Server error (HTTP ", cause: Throwable? = null) : DrandError
Server returned an error response (4xx or 5xx)
Link copied to clipboard
Unknown error
Link copied to clipboard
class VerificationFailed(message: String = "Signature verification failed", cause: Throwable? = null, val beaconRound: Long? = null) : DrandError
Beacon signature verification failed