Uses of Interface java.beans.ExceptionListener (Java Platform SE 8 )
Date: 2026-04-24

## Uses of Interface
java.beans.ExceptionListener

- Packages that use ExceptionListener
  Package | Description
  --- | ---
  java.beans | Contains classes related to developing beans -- components based on the JavaBeans™ architecture.

- - ### Uses of ExceptionListener in java.beans

    Methods in java.beans that return ExceptionListener
    Modifier and Type | Method and Description
    --- | ---
    `ExceptionListener` | XMLDecoder.`getExceptionListener()` Gets the exception handler for this stream.
    `ExceptionListener` | Encoder.`getExceptionListener()` Gets the exception handler for this stream.

    Methods in java.beans with parameters of type ExceptionListener
    Modifier and Type | Method and Description
    --- | ---
    `static DefaultHandler` | XMLDecoder.`createHandler(Object owner, ExceptionListener el, ClassLoader cl)` Creates a new handler for SAX parser that can be used to parse embedded XML archives created by the `XMLEncoder` class.
    `void` | XMLDecoder.`setExceptionListener(ExceptionListener exceptionListener)` Sets the exception handler for this stream to `exceptionListener`.
    `void` | Encoder.`setExceptionListener(ExceptionListener exceptionListener)` Sets the exception handler for this stream to `exceptionListener`.

    Constructors in java.beans with parameters of type ExceptionListener
    Constructor and Description
    `XMLDecoder(InputStream in, Object owner, ExceptionListener exceptionListener)` Creates a new input stream for reading archives created by the `XMLEncoder` class.
    `XMLDecoder(InputStream in, Object owner, ExceptionListener exceptionListener, ClassLoader cl)` Creates a new input stream for reading archives created by the `XMLEncoder` class.

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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.