Class 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 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.