Exception: NinjaOne::NinjaOneError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ninjaone/error.rb

Overview

Base error class for all exceptions raised by the NinjaOne API. This allows rescuing all NinjaOne-related errors in a single block if desired. Example:

begin
# Code that interacts with the NinjaOne API
rescue NinjaOne::NinjaOneError => e
puts "An error occurred: #{e.message}"
end

Direct Known Subclasses

AuthenticationError, ConfigurationError