Class WrappedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.camel.dataformat.bindy.WrappedException
All Implemented Interfaces:
Serializable

public class WrappedException extends RuntimeException
A RuntimeException which wraps a checked exception. This is necessary when dealing with streams, since the API does not allow catching or propagating a checked exception.
See Also:
  • Constructor Details

    • WrappedException

      public WrappedException(Exception wrappedException)
      Mandatory constructor.
      Parameters:
      wrappedException - the checked exception being passed in
  • Method Details

    • getWrappedException

      public Exception getWrappedException()