Class MixpanelMessageException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.mixpanel.mixpanelapi.MixpanelMessageException
All Implemented Interfaces:

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 Summary
 org.json.JSONObject getBadMessage()
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Method Detail


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

Copyright © 2014. All Rights Reserved.