Class InvalidJsonApiResourceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.jasminb.jsonapi.exceptions.InvalidJsonApiResourceException
-
- All Implemented Interfaces:
Serializable
public class InvalidJsonApiResourceException extends RuntimeException
InvalidJsonApiResourceException implementation.
This exception is thrown when the JSON provided is not valid JSON-API. I.e. The document must contain at least one of 'data', 'error' or 'meta' nodes.- Author:
- prawana-perera.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidJsonApiResourceException()Creates a new InvalidJsonApiResourceException.InvalidJsonApiResourceException(String errorMessage)Creates a new InvalidJsonApiResourceException.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidJsonApiResourceException
public InvalidJsonApiResourceException()
Creates a new InvalidJsonApiResourceException.
-
InvalidJsonApiResourceException
public InvalidJsonApiResourceException(String errorMessage)
Creates a new InvalidJsonApiResourceException.- Parameters:
errorMessage- detail message containing spec for resource that was invalid.
-
-