lib/request_handler/error.rb in request_handler-0.11.0 vs lib/request_handler/error.rb in request_handler-0.12.0

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + module RequestHandler class BaseError < StandardError attr_reader :errors def initialize(errors) @errors = errors @@ -26,7 +27,22 @@ class SchemaValidationError < ExternalBaseError end class OptionNotAllowedError < ExternalBaseError end class NoConfigAvailableError < InternalBaseError + end + + class BodyParamsError < ExternalArgumentError + end + class FieldsetsParamsError < ExternalArgumentError + end + class FilterParamsError < ExternalArgumentError + end + class IncludeParamsError < ExternalArgumentError + end + class PageParamsError < ExternalArgumentError + end + class SortParamsError < ExternalArgumentError + end + class MultipartParamsError < ExternalArgumentError end end