Class PermissionsRequiredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.hybris.platform.permissionsfacades.validation.exception.PermissionsRequiredException
- All Implemented Interfaces:
Serializable
Throw this exception when
TypePermissionsData.getPermissions() is null.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionsRequiredException(int index) Instantiates the error with aTypePermissionsData's index in theTypePermissionsDataList.Instantiates the exception with aTypePermissionsData's type. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PermissionsRequiredException
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:
-
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.
-