public class ApiErrorDto
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ApiErrorDto.Builder |
Constructor and Description |
---|
ApiErrorDto(java.lang.String message,
java.lang.String details) |
Modifier and Type | Method and Description |
---|---|
static ApiErrorDto.Builder |
builder() |
boolean |
equals(java.lang.Object other) |
static ApiErrorDto.Builder |
fromThrowable(java.lang.Throwable t) |
java.lang.String |
getDetails() |
java.lang.String |
getMessage() |
int |
hashCode() |
java.lang.String |
toString() |
public ApiErrorDto(java.lang.String message, java.lang.String details)
public static ApiErrorDto.Builder builder()
public static ApiErrorDto.Builder fromThrowable(java.lang.Throwable t)
ApiErrorDto.Builder
whose message is initialised to either the throwable's
message or the throwable's class name if the message is null and whose details are
initialised to the throwable's stack trace.public java.lang.String getMessage()
public java.lang.String getDetails()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object