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

public class PermissionsRequiredException extends RuntimeException
Throw this exception when TypePermissionsData.getPermissions() is null.
See Also:
  • Constructor Details

    • PermissionsRequiredException

      public PermissionsRequiredException(String type)
      Instantiates the exception with a TypePermissionsData's type.
      Parameters:
      type - the name of the type that has null permissions. If the type is null or empty string, message will display item with index 0.
      See Also:
    • PermissionsRequiredException

      public PermissionsRequiredException(int index)
      Instantiates the error with a TypePermissionsData's index in the TypePermissionsDataList.
      Parameters:
      index - the index of the item that has null permissions. If the index is less than 0, message will display item with index 0.