Record Class LFileModelEventError
java.lang.Object
java.lang.Record
com.io7m.laurel.filemodel.LFileModelEventError
- Record Components:
message- The messageprogress- The progresserrorCode- The error codeattributes- The attributesremediatingAction- The remediating actionexception- The exception
- All Implemented Interfaces:
LFileModelEventType, com.io7m.seltzer.api.SStructuredErrorType<String>
public record LFileModelEventError(String message, OptionalDouble progress, String errorCode, Map<String,String> attributes, Optional<String> remediatingAction, Optional<Throwable> exception)
extends Record
implements LFileModelEventType, com.io7m.seltzer.api.SStructuredErrorType<String>
A model event that represents an error.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.Returns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.progress()Returns the value of theprogressrecord component.Returns the value of theremediatingActionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LFileModelEventError
public LFileModelEventError(String message, OptionalDouble progress, String errorCode, Map<String, String> attributes, Optional<String> remediatingAction, Optional<Throwable> exception) A model event that represents an error.- Parameters:
message- The messageprogress- The progresserrorCode- The error codeattributes- The attributesremediatingAction- The remediating actionexception- The exception
-
-
Method Details
-
toString
-
hashCode
-
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). -
message
-
progress
Returns the value of theprogressrecord component.- Specified by:
progressin interfaceLFileModelEventType- Returns:
- the value of the
progressrecord component
-
errorCode
-
attributes
Returns the value of theattributesrecord component.- Specified by:
attributesin interfacecom.io7m.seltzer.api.SStructuredErrorType<String>- Returns:
- the value of the
attributesrecord component
-
remediatingAction
Returns the value of theremediatingActionrecord component.- Specified by:
remediatingActionin interfacecom.io7m.seltzer.api.SStructuredErrorType<String>- Returns:
- the value of the
remediatingActionrecord component
-
exception
-