Interface MamdaErrorListener


  • public interface MamdaErrorListener
    MamdaErrorListener defines an interface for handling error notifications for a MamdaSubscription.
    • Method Detail

      • onError

        void onError​(MamdaSubscription subscription,
                     short severity,
                     short errorCode,
                     java.lang.String errorStr)
        Provide a callback to handle errors. The severity is intended as a hint to indicate whether the error is recoverable.
        Parameters:
        subscription - The subscription which received the update.
        severity - The severity of the error.
        errorCode - The errorCode. (MamdaErrorCode)
        errorStr - The stringified version of the error.
        See Also:
        MamdaErrorCode