Class PermissionsRequiredException

    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PermissionsRequiredException

        public PermissionsRequiredException​(java.lang.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:
        TypePermissionsData.getType()
      • 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.