lib/invokr/errors.rb in invokr-0.0.4 vs lib/invokr/errors.rb in invokr-0.0.5

- old
+ new

@@ -47,9 +47,15 @@ def message %(missing required argument(s) #{formatted_args} when invoking method `#{builder.method.name}' on #{builder.method.owner.inspect}) end end + class UnsupportedArgumentsError < BadArgumentsError + def message + %(unsupported splat argument(s) #{formatted_args} when invoking method `#{builder.method.name}' on #{builder.method.owner.inspect}) + end + end + class OptionalPositionalArgumentError < StandardError attr :message def initialize method, arg1, arg2 @message = <<-MESSAGE