Class OfficeStamperException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
pro.verron.officestamper.api.OfficeStamperException
All Implemented Interfaces:
Serializable

public class OfficeStamperException extends RuntimeException
OfficeStamperException is a subclass of RuntimeException that represents an exception that can be thrown during the processing of an Office document using the OfficeStamper library. It provides additional constructors to handle different scenarios.
See Also:
  • Constructor Details

    • OfficeStamperException

      public OfficeStamperException(String message)
      OfficeStamperException is a subclass of RuntimeException that represents an exception that can be thrown during the processing of an Office document using the OfficeStamper library.
      Parameters:
      message - a message describing the error
    • OfficeStamperException

      public OfficeStamperException(Throwable cause)
      OfficeStamperException is a subclass of RuntimeException that represents an exception that can be thrown during the processing of an Office document using the OfficeStamper library.
      Parameters:
      cause - the cause of the exception
    • OfficeStamperException

      public OfficeStamperException(String message, Throwable cause)
      OfficeStamperException is a subclass of RuntimeException that represents an exception that can be thrown during the processing of an Office document using the OfficeStamper library.
      Parameters:
      message - a message describing the error
      cause - the cause of the exception
    • OfficeStamperException

      public OfficeStamperException()
      OfficeStamperException is a subclass of RuntimeException that represents an exception that can be thrown during the processing of an Office document using the OfficeStamper library.
  • Method Details

    • throwing

      public static Supplier<OfficeStamperException> throwing(String message)
      Creates a supplier that returns a new instance of OfficeStamperException with the specified message.
      Parameters:
      message - the message describing the exception
      Returns:
      a supplier that provides a new OfficeStamperException instance
    • throwing

      public static <T, U> Function<T,U> throwing(org.springframework.util.function.ThrowingFunction<T,U> function)
      Wraps a ThrowingFunction into a standard Java Function, converting any checked exceptions thrown by the original function into an OfficeStamperException.
      Type Parameters:
      T - the type of the input to the function
      U - the type of the result of the function
      Parameters:
      function - the throwing function to be wrapped
      Returns:
      a Function that wraps the specified ThrowingFunction and handles exceptions by throwing an OfficeStamperException