Exception: Cerbos::Hub::Stores::Error::OperationDiscarded
- Inherits:
-
Error::NotOK
- Object
- StandardError
- Error
- Error::NotOK
- Cerbos::Hub::Stores::Error::OperationDiscarded
- Defined in:
- lib/cerbos/hub/stores/error.rb
Overview
Error thrown when a store modification is aborted because it doesn't change the state of the store.
Use the allow_unchanged request parameter to avoid throwing an error and return the current store version instead.
Instance Attribute Summary collapse
-
#current_store_version ⇒ Object
readonly
The current version of the store.
-
#ignored_files ⇒ Object
readonly
Paths of files that were provided in the request but were ignored.
Attributes inherited from Error::NotOK
Instance Attribute Details
#current_store_version ⇒ Object (readonly)
The current version of the store.
47 48 49 |
# File 'lib/cerbos/hub/stores/error.rb', line 47 def current_store_version @current_store_version end |
#ignored_files ⇒ Object (readonly)
Paths of files that were provided in the request but were ignored.
Files with unexpected paths, for example hidden files, will be ignored.
52 53 54 |
# File 'lib/cerbos/hub/stores/error.rb', line 52 def ignored_files @ignored_files end |