public class

ListenerNotFoundException

extends InvalidIntegrationException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.amazon.identity.auth.device.api.InvalidIntegrationException
           ↳ com.amazon.identity.auth.device.api.workflow.ListenerNotFoundException

Class Overview

Indicates that an InteractiveListener was not registered on the RequestContext during the execution of a corresponding InteractiveRequest.

Each InteractiveRequest (such as AuthorizeRequest) is created with a RequestContext. When a request is finished, the listeners registered to the request's RequestContext and associated with that type of request (this this example, AuthorizeListener) will be called on. If no listeners meet these requirements, then this exception will be thrown.

Here are some tips for investigating this exception:

  1. Ensure that there is a listener being registered for the request being made.
  2. Ensure that the RequestContext is being created and the listeners are registered to it in your onCreate or onCreateView. This is to establish that the listeners are created every time the Android lifecycle recreates your component.
  3. Ensure that the request is created with the same RequestContext instance that the corresponding listener(s) are registered to.
{@since 3.0 }

Summary

Public Constructors
ListenerNotFoundException()
ListenerNotFoundException(String detailMessage)
ListenerNotFoundException(String detailMessage, Throwable throwable)
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public ListenerNotFoundException ()

public ListenerNotFoundException (String detailMessage)

public ListenerNotFoundException (String detailMessage, Throwable throwable)