Record Class Hooks.ErrorInfo
java.lang.Object
java.lang.Record
codes.grow.packages.betterstack.core.Hooks.ErrorInfo
- Record Components:
method- HTTP methodurl- redacted URLerror- the (redacted) SDK error of this attemptattempt- attempt number starting at 1willRetry- whether the transport retries afterwards
- Enclosing interface:
Hooks
public static record Hooks.ErrorInfo(String method, String url, BetterStackException error, int attempt, boolean willRetry)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionErrorInfo(String method, String url, BetterStackException error, int attempt, boolean willRetry) Creates an instance of aErrorInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.booleanReturns the value of thewillRetryrecord component.
-
Constructor Details
-
ErrorInfo
public ErrorInfo(String method, String url, BetterStackException error, int attempt, boolean willRetry) Creates an instance of aErrorInforecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
attempt
public int attempt()Returns the value of theattemptrecord component.- Returns:
- the value of the
attemptrecord component
-
willRetry
public boolean willRetry()Returns the value of thewillRetryrecord component.- Returns:
- the value of the
willRetryrecord component
-