Exception: Jazari::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Jazari::Error
- Defined in:
- lib/jazari/errors.rb
Overview
A closed taxonomy. Hosts translate these into their own transport envelope; unauthorized, unknown, deleted, and type-mismatched input must all collapse to TargetNotFound so that guessing a target cannot disclose its existence.
Direct Known Subclasses
InvalidRunbook, ItemNotFound, ReadOnlyTarget, RevisionConflict, RunClosed, TargetNotFound
Instance Method Summary collapse
Instance Method Details
#code ⇒ Object
8 |
# File 'lib/jazari/errors.rb', line 8 def code = self.class.name.split("::").last.gsub(/([a-z])([A-Z])/, '\1_\2').downcase |