Class PermissionsRequiredException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.hybris.platform.permissionsfacades.validation.exception.PermissionsRequiredException
-
- All Implemented Interfaces:
java.io.Serializable
public class PermissionsRequiredException extends java.lang.RuntimeExceptionThrow this exception whenTypePermissionsData.getPermissions()isnull.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PermissionsRequiredException(int index)Instantiates the error with aTypePermissionsData's index in theTypePermissionsDataList.PermissionsRequiredException(java.lang.String type)Instantiates the exception with aTypePermissionsData's type.
-
-
-
Constructor Detail
-
PermissionsRequiredException
public PermissionsRequiredException(java.lang.String type)
Instantiates the exception with aTypePermissionsData's type.- Parameters:
type- the name of the type that hasnullpermissions. If the type isnullor empty string, message will display item with index 0.- See Also:
TypePermissionsData.getType()
-
PermissionsRequiredException
public PermissionsRequiredException(int index)
Instantiates the error with aTypePermissionsData's index in theTypePermissionsDataList.- Parameters:
index- the index of the item that hasnullpermissions. If the index is less than 0, message will display item with index 0.
-
-