public class ErrorResponse
extends java.lang.Object
Constructor and Description |
---|
ErrorResponse()
Empty constructor required by KryoNet.
|
ErrorResponse(java.lang.String errorMessage)
Constructs a new error response
|
ErrorResponse(java.lang.String errorMessage,
boolean critical)
Constructs a new error response
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorMessage()
Gets the error message attached to the error response
|
boolean |
isCritical()
Gets whether the error is critical or not
|
public ErrorResponse(java.lang.String errorMessage)
errorMessage
- The error message describing the errorpublic ErrorResponse()
public ErrorResponse(java.lang.String errorMessage, boolean critical)
errorMessage
- The error message describing the errorcritical
- Whether the error is critical