Package com.fauna.exception
Class InvalidRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.fauna.exception.FaunaException
-
- com.fauna.exception.ServiceException
-
- com.fauna.exception.InvalidRequestException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidRequestException extends ServiceException
Exception representing an invalid query request.This exception is thrown when a request sent to Fauna does not conform to the API specifications, typically due to malformed data, incorrect parameters, or other request-related issues. Extends
ServiceException
to provide specific details about the invalid request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidRequestException(QueryFailure response)
Constructs a newInvalidRequestException
with the specifiedQueryFailure
response.
-
Method Summary
-
Methods inherited from class com.fauna.exception.ServiceException
getErrorCode, getQueryTags, getResponse, getSchemaVersion, getStats, getStatusCode, getSummary, getTxnTs
-
-
-
-
Constructor Detail
-
InvalidRequestException
public InvalidRequestException(QueryFailure response)
Constructs a newInvalidRequestException
with the specifiedQueryFailure
response.- Parameters:
response
- TheQueryFailure
object containing details about the invalid request.
-
-