HubErrors

public interface HubErrors

An interface for custom Hub errors.

Methods

getCode

int getCode()

Gets the code of the error that occurred.

Returns:the code of the error

getHttpStatus

HttpStatus getHttpStatus()

Gets the HTTP status appropriate for this error.

Returns:the HTTP status for this error

getMessage

String getMessage()

Gets a message describing the error that occurred.

Returns:a message describing the error