HubException¶
-
public class
HubExceptionextends Exception¶ This class is used for custom exception for the Hub Module
Author: anuranjan
Constructors¶
HubException¶
-
public
HubException(HubErrors hubErrors)¶ Creates a new
HubExceptioninstance fromorg.motechproject.hub.exception.HubErrorspassed as a parameter.Parameters: - hubErrors – the error that caused the exception
HubException¶
-
public
HubException(HubErrors hubErrors, String reason)¶ Creates a new
HubExceptioninstance fromorg.motechproject.hub.exception.HubErrorsand aStringdescribing error cause passed as a parameters.Parameters: - hubErrors – the error that caused the exception
- reason – reason for the error
HubException¶
-
public
HubException(HubErrors hubErrors, Throwable throwable)¶ Creates a new
HubExceptioninstance fromorg.motechproject.hub.exception.HubErrorsandThrowablethat caused this exception passed as a parameters.Parameters: - hubErrors – the error that caused the exception
- throwable – the underlying exception
HubException¶
-
public
HubException(HubErrors hubErrors, Throwable throwable, String reason)¶ Creates a new
HubExceptioninstance fromorg.motechproject.hub.exception.HubErrors,Throwablethat caused this exception and aStringdescribing error cause passed as a parameters.Parameters: - hubErrors – the error that caused the exception
- throwable – the underlying exception
- reason – the reason for this error
Methods¶
getError¶
-
public HubErrors
getError()¶ Gets the underlying
org.motechproject.hub.exception.HubErrorserror.Returns: the underlying org.motechproject.hub.exception.HubErrorserror
getErrorCode¶
-
public int
getErrorCode()¶ Gets the error code for the underlying error.
Returns: the error code