Exception: NinjaOne::NinjaOneError
- Inherits:
-
StandardError
- Object
- StandardError
- NinjaOne::NinjaOneError
- 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.}"
end