Class PromptApiExceptionFactory
java.lang.Object
de.xima.fc.prompt.mgmt.internal.PromptApiExceptionFactory
Factory for creating instances of
FcPromptTypeException and its subclasses. Part of the internal package as
consumers of the API should not create exceptions directly, only catch them.- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptionnewPromptAuthorizationException(String message, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptAuthorizationExceptionwith the given message and localized message function.static FcPromptManagementExceptionnewPromptManagementException(String message, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptManagementExceptionwith the given message and localized message function.static FcPromptManagementExceptionnewPromptManagementException(String message, Throwable cause, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptManagementExceptionwith the given message, cause, and localized message function.static FcPromptManagementExceptionnewPromptManagementException(Throwable cause, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptManagementExceptionwith the given cause and localized message function.static FcPromptTypeExceptionnewPromptTypeException(String message, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptTypeExceptionwith the given message and localized message function.static FcPromptTypeExceptionnewPromptTypeException(String message, Throwable cause, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptTypeExceptionwith the given message, cause, and localized message function.static FcPromptTypeExceptionnewPromptTypeException(Throwable cause, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptTypeExceptionwith the given cause and localized message function.newPromptTypeExecutionException(PromptExecutionException executionException, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptTypeExecutionExceptionwith the given cause, and localized message function.newPromptTypeExecutionException(String message, PromptExecutionException cause, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptTypeExecutionExceptionwith the given message, cause, and localized message function.
-
Method Details
-
newPromptAuthorizationException
public static FcPromptAuthorizationException newPromptAuthorizationException(String message, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptAuthorizationExceptionwith the given message and localized message function.- Parameters:
message- The exception message.localizedMessage- The function to generate localized messages.- Returns:
- A new instance of
FcPromptAuthorizationException.
-
newPromptManagementException
public static FcPromptManagementException newPromptManagementException(String message, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptManagementExceptionwith the given message and localized message function.- Parameters:
message- The exception message.localizedMessage- The function to generate localized messages.- Returns:
- A new instance of
FcPromptManagementException.
-
newPromptManagementException
public static FcPromptManagementException newPromptManagementException(String message, Throwable cause, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptManagementExceptionwith the given message, cause, and localized message function.- Parameters:
message- The exception message.cause- The cause of the exception.localizedMessage- The function to generate localized messages.- Returns:
- A new instance of
FcPromptManagementException.
-
newPromptManagementException
public static FcPromptManagementException newPromptManagementException(Throwable cause, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptManagementExceptionwith the given cause and localized message function.- Parameters:
cause- The cause of the exception.localizedMessage- The function to generate localized messages.- Returns:
- A new instance of
FcPromptManagementException.
-
newPromptTypeException
public static FcPromptTypeException newPromptTypeException(String message, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptTypeExceptionwith the given message and localized message function.- Parameters:
message- The exception message.localizedMessage- The function to generate localized messages.- Returns:
- A new instance of
FcPromptTypeException.
-
newPromptTypeException
public static FcPromptTypeException newPromptTypeException(String message, Throwable cause, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptTypeExceptionwith the given message, cause, and localized message function.- Parameters:
message- The exception message.cause- The cause of the exception.localizedMessage- The function to generate localized messages.- Returns:
- A new instance of
FcPromptTypeException.
-
newPromptTypeException
public static FcPromptTypeException newPromptTypeException(Throwable cause, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptTypeExceptionwith the given cause and localized message function.- Parameters:
cause- The cause of the exception.localizedMessage- The function to generate localized messages.- Returns:
- A new instance of
FcPromptTypeException.
-
newPromptTypeExecutionException
public static FcPromptTypeExecutionException newPromptTypeExecutionException(String message, PromptExecutionException cause, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptTypeExecutionExceptionwith the given message, cause, and localized message function.- Parameters:
message- The exception message.cause- The cause of the exception.localizedMessage- The function to generate localized messages.- Returns:
- A new instance of
FcPromptTypeException.
-
newPromptTypeExecutionException
public static FcPromptTypeExecutionException newPromptTypeExecutionException(PromptExecutionException executionException, ISerializableFunction<Locale, String> localizedMessage) Creates a new instance ofFcPromptTypeExecutionExceptionwith the given cause, and localized message function.- Parameters:
executionException- The original execution exception.localizedMessage- The function to generate localized messages.- Returns:
- A new instance of
FcPromptTypeException.
-