Record Class MapResult.MapError
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.model.MapResult.MapError
- Record Components:
errorType- the fully qualified exception class nameerrorMessage- the error messagestackTrace- the stack trace frames, or null
public static record MapResult.MapError(String errorType, String errorMessage, List<String> stackTrace)
extends Record
Error details for a failed map item.
Stores error information as plain strings so that MapResult can be serialized through the user's
SerDes without requiring AWS SDK-specific Jackson modules.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.Returns the value of theerrorTyperecord component.final inthashCode()Returns a hash code value for this object.static MapResult.MapErrorReturns the value of thestackTracerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MapError
Creates an instance of aMapErrorrecord class.- Parameters:
errorType- the value for theerrorTyperecord componenterrorMessage- the value for theerrorMessagerecord componentstackTrace- the value for thestackTracerecord component
-
-
Method Details
-
of
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
errorType
Returns the value of theerrorTyperecord component.- Returns:
- the value of the
errorTyperecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-
stackTrace
Returns the value of thestackTracerecord component.- Returns:
- the value of the
stackTracerecord component
-