java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
pro.verron.officestamper.api.OfficeStamperException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionOfficeStamperException is a subclass of RuntimeException that represents an exception that can be thrown during the processing of an Office document using the OfficeStamper library.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.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.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic Supplier
<OfficeStamperException> Creates a supplier that returns a new instance ofOfficeStamperException
with the specified message.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.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
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.- Parameters:
message
- a message describing the error
-
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.- Parameters:
cause
- the cause of the exception
-
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.- Parameters:
message
- a message describing the errorcause
- 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
Creates a supplier that returns a new instance ofOfficeStamperException
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 functionU
- 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
-