Exception: Cerbos::Hub::Stores::Error::OperationDiscarded

Inherits:
Error::NotOK
  • Object
show all
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

Attributes inherited from Error::NotOK

#code, #details, #metadata

Instance Attribute Details

#current_store_versionObject (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_filesObject (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