Java™ Platform
Standard Ed. 8
compact3
javax.naming.event

Class NamingExceptionEvent

    • Constructor Detail

      • NamingExceptionEvent

        public NamingExceptionEvent(EventContext source,
                                    NamingException exc)
        Constructs an instance of NamingExceptionEvent using the context in which the NamingException was thrown and the exception that was thrown.
        Parameters:
        source - The non-null context in which the exception was thrown.
        exc - The non-null NamingException that was thrown.
    • Method Detail

      • getException

        public NamingException getException()
        Retrieves the exception that was thrown.
        Returns:
        The exception that was thrown.
      • getEventContext

        public EventContext getEventContext()
        Retrieves the EventContext that fired this event. This returns the same object as EventObject.getSource().
        Returns:
        The non-null EventContext that fired this event.
      • dispatch

        public void dispatch(NamingListener listener)
        Invokes the namingExceptionThrown() method on a listener using this event.
        Parameters:
        listener - The non-null naming listener on which to invoke the method.
Java™ Platform
Standard Ed. 8

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部