Class InvalidJsonException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.blaauwendraad.masker.json.InvalidJsonException
All Implemented Interfaces:
Serializable

public class InvalidJsonException extends RuntimeException
Calling any of the mask methods of the JsonMasker can result in two cases:
  1. In case valid JSON was provided, valid JSON is returned according to the provided masking configurations
  2. In case invalid JSON was provided, the exception defined in this class is thrown
See Also:
  • Constructor Details

    • InvalidJsonException

      public InvalidJsonException(String message, Throwable cause)
    • InvalidJsonException

      public InvalidJsonException(String message)