Uses of Enum Class
codes.grow.packages.betterstack.core.ErrorCode
Packages that use ErrorCode
-
Uses of ErrorCode in codes.grow.packages.betterstack.core
Methods in codes.grow.packages.betterstack.core that return ErrorCodeModifier and TypeMethodDescriptionBetterStackException.code()Returns the canonical error code.static ErrorCodeErrorCode.forStatus(int status) Maps an HTTP status to its canonical code.static ErrorCodeReturns the enum constant of this class with the specified name.static ErrorCode[]ErrorCode.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in codes.grow.packages.betterstack.core that return types with arguments of type ErrorCodeModifier and TypeMethodDescriptionReturns the code of an SDK exception.Methods in codes.grow.packages.betterstack.core with parameters of type ErrorCodeModifier and TypeMethodDescriptionstatic BetterStackExceptionBetterStackException.of(ErrorCode code, String message, Integer httpStatus, String requestId, boolean retryable, Duration retryAfter, Throwable cause) LikeBetterStackException.of(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.Constructors in codes.grow.packages.betterstack.core with parameters of type ErrorCode