public class FailureDetailsLogInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FailureDetailsLogInfo.Builder
Builder for
FailureDetailsLogInfo . |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
technicalErrorMessage |
protected java.lang.String |
userFriendlyMessage |
Constructor and Description |
---|
FailureDetailsLogInfo()
Provides details about a failure
|
FailureDetailsLogInfo(java.lang.String userFriendlyMessage,
java.lang.String technicalErrorMessage)
Provides details about a failure
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getTechnicalErrorMessage()
A technical explanation of the error.
|
java.lang.String |
getUserFriendlyMessage()
A user friendly explanation of the error.
|
int |
hashCode() |
static FailureDetailsLogInfo.Builder |
newBuilder()
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String userFriendlyMessage
protected final java.lang.String technicalErrorMessage
public FailureDetailsLogInfo(java.lang.String userFriendlyMessage, java.lang.String technicalErrorMessage)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
userFriendlyMessage
- A user friendly explanation of the error.
Might be missing due to historical data gap.technicalErrorMessage
- A technical explanation of the error. This
is relevant for some errors.public FailureDetailsLogInfo()
The default values for unset fields will be used.
public java.lang.String getUserFriendlyMessage()
null
if not present.public java.lang.String getTechnicalErrorMessage()
null
if not present.public static FailureDetailsLogInfo.Builder newBuilder()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.