lib/lokalise_manager/error.rb in lokalise_manager-5.1.0 vs lib/lokalise_manager/error.rb in lokalise_manager-5.1.2
- old
+ new
@@ -1,11 +1,13 @@
# frozen_string_literal: true
module LokaliseManager
- # LokaliseManager error class, subclass of StandardError
+ # The Error class provides a custom exception type for the LokaliseManager,
+ # allowing the library to raise specific errors that can be easily identified
+ # and handled separately from other StandardError exceptions in Ruby.
class Error < StandardError
# Initializes a new Error object
def initialize(message = '')
- super(message)
+ super
end
end
end