Class MixpanelMessageException

  • All Implemented Interfaces:
    Serializable

    public class MixpanelMessageException
    extends RuntimeException
    Thrown when the library detects malformed or invalid Mixpanel messages. Mixpanel messages are represented as JSONObjects, but not all JSONObjects represent valid Mixpanel messages. MixpanelMessageExceptions are thrown when a JSONObject is passed to the Mixpanel library that can't be passed on to the Mixpanel service. This is a runtime exception, since in most cases it is thrown due to errors in your application architecture.
    See Also:
    Serialized Form
    • Method Detail

      • getBadMessage

        public org.json.JSONObject getBadMessage()
        Returns:
        the (possibly null) JSONObject message associated with the failure