Uses of Class
codes.grow.packages.betterstack.core.BetterStackException
Packages that use BetterStackException
Package
Description
Grow Codes SDK for Better Stack Logs.
-
Uses of BetterStackException in codes.grow.packages.betterstack
Subclasses of BetterStackException in codes.grow.packages.betterstackModifier and TypeClassDescriptionfinal classBetter Stack answered402 Quota exceeded: the team's quota or spending limit is reached.final classThe service answered with a body the SDK cannot use: an invalid JSON response or a ClickHouse exception without a specific mapping that followed a200answer.Methods in codes.grow.packages.betterstack that return BetterStackExceptionModifier and TypeMethodDescriptionstatic BetterStackExceptionBetterStackErrors.mapIngestError(Throwable error, String operation) Maps an ingest-host failure (see the class description).static BetterStackExceptionBetterStackErrors.mapQueryError(Throwable error, String operation) Maps a SQL-host failure by the ClickHouse code found in its message; otherwise the error is returned unchanged.Methods in codes.grow.packages.betterstack that return types with arguments of type BetterStackExceptionModifier and TypeMethodDescriptionstatic Optional<BetterStackException> BetterStackErrors.errorForClickHouseCode(int code, String message, Integer httpStatus, String requestId) Builds the SDK exception for a ClickHouse exception code, or empty when the code has no specific mapping (the HTTP status mapping applies then). -
Uses of BetterStackException in codes.grow.packages.betterstack.core
Subclasses of BetterStackException in codes.grow.packages.betterstack.coreModifier and TypeClassDescriptionclassMissing or invalid credentials (HTTP 401).classThe caller cancelled the operation (future cancelled, thread interrupted, client closed).classInvalid or missing configuration.classConflicting write or check-and-set mismatch (HTTP 409, 412).classThe record does not exist (HTTP 404).classThe credentials lack a permission (HTTP 403).classThe service rate-limited the call (HTTP 429); seeretryAfter().classA connect, request or total deadline was exceeded (or HTTP 408, 504).classNetwork error or HTTP 500, 502, 503.classThe service or deployment does not offer this capability (HTTP 501).classThe request or a value is invalid (HTTP 400, 413, 422, other 4xx).Methods in codes.grow.packages.betterstack.core that return BetterStackExceptionModifier and TypeMethodDescriptionstatic BetterStackExceptionHttpTransport.asSdkException(Throwable t, String operation) Converts any throwable from a future into the matching SDK exception.Hooks.ErrorInfo.error()Returns the value of theerrorrecord component.ErrorMapper.map(TransportResponse resp, BetterStackException error) Maps a failed response.static BetterStackExceptionBetterStackException.of(ErrorCode code, String message, Integer httpStatus, String requestId, boolean retryable, Duration retryAfter, Throwable cause) Likeof(ErrorCode, String, Integer, String, Duration, Throwable)with an explicitretryableflag instead of the default of the code.static BetterStackExceptionBetterStackException.of(ErrorCode code, String message, Integer httpStatus, String requestId, Duration retryAfter, Throwable cause) Creates the subclass that matchescode.Methods in codes.grow.packages.betterstack.core with parameters of type BetterStackExceptionModifier and TypeMethodDescriptionstatic HealthStatusHealthCheck.fromError(BetterStackException e) Maps a transport error tounreachable.ErrorMapper.map(TransportResponse resp, BetterStackException error) Maps a failed response.Constructors in codes.grow.packages.betterstack.core with parameters of type BetterStackExceptionModifierConstructorDescriptionErrorInfo(String method, String url, BetterStackException error, int attempt, boolean willRetry) Creates an instance of aErrorInforecord class. -
Uses of BetterStackException in codes.grow.packages.betterstack.logging
Methods in codes.grow.packages.betterstack.logging that return types with arguments of type BetterStackExceptionModifier and TypeMethodDescriptionExportResult.error()Returns the value of theerrorrecord component.Methods in codes.grow.packages.betterstack.logging with parameters of type BetterStackExceptionModifier and TypeMethodDescriptionstatic ExportResultExportResult.failure(int accepted, int rejected, BetterStackException e) Some or all records failed.Constructor parameters in codes.grow.packages.betterstack.logging with type arguments of type BetterStackExceptionModifierConstructorDescriptionExportResult(int accepted, int rejected, Optional<BetterStackException> error) Validates the result.