Exception: WifiWand::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- WifiWand::Error
- Defined in:
- lib/wifi_wand/errors.rb
Overview
Base error class - keep for backward compatibility
Direct Known Subclasses
BadCommandError, CommandExecutor::OsCommandError, CommandNotFoundError, CommandSpawnError, CommandTimeoutError, ConfigurationError, InvalidIPAddressError, InvalidInterfaceError, InvalidNetworkNameError, InvalidNetworkPasswordError, KeychainAccessCancelledError, KeychainAccessDeniedError, KeychainError, KeychainNonInteractiveError, LogFileError, MacOsRedactionError, MethodNotImplementedError, MultipleOSMatchError, NetworkAuthenticationError, NetworkConnectionError, NetworkDisconnectionError, NetworkNotFoundError, NoSupportedOSError, NonSubclassInstantiationError, PreferredNetworkNotFoundError, PublicIPLookupError, QrCodeGenerationError, QrCodeOutputFileError, QrCodePasswordUnavailableError, QrCodeSecurityUndeterminedError, StatusUnavailableError, SudoAuthenticationError, SystemProfilerError, WaitTimeoutError, WifiDisableError, WifiEnableError, WifiInterfaceError, WifiOffError
Instance Method Summary collapse
- #append_help_hint? ⇒ Boolean
-
#display_message ⇒ Object
Subclasses can override this when CLI output needs more context than Exception#message while preserving message for exception matching.
-
#exception(_message = nil) ⇒ Object
Returning self keeps
raise(SomeError.new(...))compatible with keyword-only constructors. - #message_for_display ⇒ Object
Instance Method Details
#append_help_hint? ⇒ Boolean
17 |
# File 'lib/wifi_wand/errors.rb', line 17 def append_help_hint? = true |
#display_message ⇒ Object
Subclasses can override this when CLI output needs more context than Exception#message while preserving message for exception matching.
13 |
# File 'lib/wifi_wand/errors.rb', line 13 def = nil |
#exception(_message = nil) ⇒ Object
Returning self keeps raise(SomeError.new(...)) compatible with
keyword-only constructors. Ruby calls exception while raising an
existing exception object.
9 |
# File 'lib/wifi_wand/errors.rb', line 9 def exception( = nil) = self |
#message_for_display ⇒ Object
15 |
# File 'lib/wifi_wand/errors.rb', line 15 def = || to_s |