Sha256: 4d6a34bb5963e0b13bb2dfe009ccd4cb1f623ea7fe94c14c79f5db2e141d6561
Contents?: true
Size: 798 Bytes
Versions: 2
Compression:
Stored size: 798 Bytes
Contents
module PhNoToWord # PhNoToWord::Error is raised when it's caused by wrong usage of PhNoToWord classes. Those # errors have their backtrace suppressed and are nicely shown to the user. # # Errors that are caused by the developer, like declaring a method which # overwrites a PhNoToWord keyword, SHOULD NOT raise a PhNoToWord::Error. This way, we # ensure that developer errors are shown with full backtrace. module Error class Error < StandardError end # Raised when a command was not found. class UndefinedCommandError < Error end class UnknownArgumentError < Error end class RequiredArgumentMissingError < ArgumentError end class MalformattedArgumentError < ArgumentError end class FileNotExists < ArgumentError end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ph_no_to_word-1.0.0 | lib/ph_no_to_word/error.rb |
ph_no_to_word-0.1.0 | lib/ph_no_to_word/error.rb |