public class Error extends Object
Constructor and Description |
---|
Error() |
Error(String code,
String message,
String description,
ErrorDetails innerError)
Initializes a new instance of the Error
|
Modifier and Type | Method and Description |
---|---|
Error |
code(String code)
Set code and return this.
|
Error |
description(String description)
Set description and return this.
|
boolean |
equals(Object o) |
String |
getCode()
Get code
|
String |
getDescription()
Get description
|
ErrorDetails |
getInnerError()
Get innerError
|
String |
getMessage()
Get message
|
int |
hashCode() |
Error |
innerError(ErrorDetails innerError)
Set innerError and return this.
|
Error |
message(String message)
Set message and return this.
|
void |
setCode(String code)
Set code.
|
void |
setDescription(String description)
Set description.
|
void |
setInnerError(ErrorDetails innerError)
Set innerError.
|
void |
setMessage(String message)
Set message.
|
String |
toString() |
public Error()
public Error(String code, String message, String description, ErrorDetails innerError)
code
- message
- description
- innerError
- public String getCode()
public void setCode(String code)
code
- public Error message(String message)
message
- public String getMessage()
public void setMessage(String message)
message
- public Error description(String description)
description
- public String getDescription()
public void setDescription(String description)
description
- public Error innerError(ErrorDetails innerError)
innerError
- public ErrorDetails getInnerError()
public void setInnerError(ErrorDetails innerError)
innerError
- Copyright © 2020. All rights reserved.