Record Class Error
java.lang.Object
java.lang.Record
de.oliver.fancyanalytics.sdk.errors.Error
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionClassrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of thepropertiesrecord component.Returns the value of thestackTracerecord component.final StringtoString()Returns a string representation of this record class.withProperty(String key, String value)
-
Constructor Details
-
Error
public Error(String exceptionClass, String message, String stackTrace, Map<String, String> properties) Creates an instance of aErrorrecord class.- Parameters:
exceptionClass- the value for theexceptionClassrecord componentmessage- the value for themessagerecord componentstackTrace- the value for thestackTracerecord componentproperties- the value for thepropertiesrecord component
-
-
Method Details
-
withProperty
-
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). -
exceptionClass
Returns the value of theexceptionClassrecord component.- Returns:
- the value of the
exceptionClassrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
stackTrace
Returns the value of thestackTracerecord component.- Returns:
- the value of the
stackTracerecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-