Package de.xima.fc.prompt.mgmt.internal
Class PromptApiExceptionFactory
- java.lang.Object
-
- de.xima.fc.prompt.mgmt.internal.PromptApiExceptionFactory
-
public final class PromptApiExceptionFactory extends Object
Factory for creating instances ofFcPromptTypeExceptionand 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FcPromptAuthorizationExceptionnewPromptAuthorizationException(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.static FcPromptTypeExecutionExceptionnewPromptTypeExecutionException(PromptExecutionException executionException, ISerializableFunction<Locale,String> localizedMessage)Creates a new instance ofFcPromptTypeExecutionExceptionwith the given cause, and localized message function.static FcPromptTypeExecutionExceptionnewPromptTypeExecutionException(String message, PromptExecutionException cause, ISerializableFunction<Locale,String> localizedMessage)Creates a new instance ofFcPromptTypeExecutionExceptionwith the given message, cause, and localized message function.
-
-
-
Method Detail
-
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.
-
-