Exception: Textus::InvalidRole

Inherits:
Error
  • Object
show all
Defined in:
lib/textus/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#code, #details, #exit_code, #hint

Instance Method Summary collapse

Methods inherited from Error

#to_envelope

Constructor Details

#initialize(r) ⇒ InvalidRole

Returns a new instance of InvalidRole.



124
125
126
127
128
129
130
# File 'lib/textus/errors.rb', line 124

def initialize(r)
  super(
    "invalid_role", "role '#{r}' is not declared in any zone",
    details: { "role" => r },
    hint: "valid roles are declared in .textus/manifest.yaml under zones[].writable_by",
  )
end