Class AssetApiExceptionFactory
- java.lang.Object
-
- de.xima.fc.asset.ms.impl.exception.AssetApiExceptionFactory
-
public class AssetApiExceptionFactory extends Object
- Since:
- 8.6.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FcAssetAuthorizationExceptionnewAssetAuthorizationException(String message, ISerializableFunction<Locale,String> localizedMessage)Creates a new instance ofFcAssetAuthorizationExceptionwith the given message and localized message function.static FcAssetManagementExceptionnewAssetManagementException(String message, ISerializableFunction<Locale,String> localizedMessage)Creates a new instance ofFcAssetManagementExceptionwith the given message and localized message function.static FcAssetManagementExceptionnewAssetManagementException(String message, Throwable cause, ISerializableFunction<Locale,String> localizedMessage)Creates a new instance ofFcAssetManagementExceptionwith the given message, cause, and localized message function.static FcAssetManagementExceptionnewAssetManagementException(Throwable cause, ISerializableFunction<Locale,String> localizedMessage)Creates a new instance ofFcAssetManagementExceptionwith the given cause and localized message function.
-
-
-
Method Detail
-
newAssetManagementException
public static FcAssetManagementException newAssetManagementException(String message, ISerializableFunction<Locale,String> localizedMessage)
Creates a new instance ofFcAssetManagementExceptionwith the given message and localized message function.- Parameters:
message- The exception message.localizedMessage- The function to generate localized messages.- Returns:
- A new instance of
FcAssetManagementException.
-
newAssetManagementException
public static FcAssetManagementException newAssetManagementException(String message, Throwable cause, ISerializableFunction<Locale,String> localizedMessage)
Creates a new instance ofFcAssetManagementExceptionwith 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
FcAssetManagementException.
-
newAssetManagementException
public static FcAssetManagementException newAssetManagementException(Throwable cause, ISerializableFunction<Locale,String> localizedMessage)
Creates a new instance ofFcAssetManagementExceptionwith 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
FcAssetManagementException.
-
newAssetAuthorizationException
public static FcAssetAuthorizationException newAssetAuthorizationException(String message, ISerializableFunction<Locale,String> localizedMessage)
Creates a new instance ofFcAssetAuthorizationExceptionwith the given message and localized message function.- Parameters:
message- The exception message.localizedMessage- The function to generate localized messages.- Returns:
- A new instance of
FcAssetAuthorizationException.
-
-