Package org.intermine.client.exceptions
Class BadRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.intermine.client.exceptions.ServiceException
-
- org.intermine.client.exceptions.BadRequestException
-
- All Implemented Interfaces:
java.io.Serializable
public class BadRequestException extends ServiceException
The BadRequestException is thrown by service when there is a problem with the request. Connected service exists but the service has problems with the parameters of request and client should change the request.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.intermine.client.exceptions.ServiceException
ERROR_CODE
-
-
Constructor Summary
Constructors Constructor Description BadRequestException(java.lang.String message)
BadRequestException(java.lang.String message, java.lang.Throwable cause)
BadRequestException(java.lang.Throwable cause)
BadRequestException(HttpConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHttpErrorCode()
-
Methods inherited from class org.intermine.client.exceptions.ServiceException
getMessage
-
-
-
-
Constructor Detail
-
BadRequestException
public BadRequestException(java.lang.String message)
- Parameters:
message
- message
-
BadRequestException
public BadRequestException(java.lang.String message, java.lang.Throwable cause)
- Parameters:
message
- messagecause
- cause
-
BadRequestException
public BadRequestException(java.lang.Throwable cause)
- Parameters:
cause
- cause
-
BadRequestException
public BadRequestException(HttpConnection connection)
- Parameters:
connection
- connection- See Also:
for detailed description
-
-
Method Detail
-
getHttpErrorCode
public int getHttpErrorCode()
- Overrides:
getHttpErrorCode
in classServiceException
- Returns:
- http error code
-
-