Exception: Textus::InvalidRole
- Defined in:
- lib/textus/errors.rb
Instance Attribute Summary
Attributes inherited from Error
#code, #details, #exit_code, #hint
Instance Method Summary collapse
-
#initialize(r, message: nil) ⇒ InvalidRole
constructor
A new instance of InvalidRole.
Methods inherited from Error
Constructor Details
#initialize(r, message: nil) ⇒ InvalidRole
Returns a new instance of InvalidRole.
142 143 144 145 146 147 148 149 |
# File 'lib/textus/errors.rb', line 142 def initialize(r, message: nil) super( "invalid_role", || "role '#{r}' is not declared in any zone", details: { "role" => r }, hint: ? nil : "valid roles are declared in .textus/manifest.yaml under zones[].write_policy", ) end |