Project

General

Profile

Actions

Bug #16133

closed

2.5 --> 2.6: backwards incompatible change in MalformedCSVError

Added by Spakman (Mark Somerville) about 5 years ago. Updated about 5 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
[ruby-core:94740]

Description

In Ruby 2.5, CSV::MalformedCSVError simply inherited from RuntimeError. In 2.6, it defines its own #new, taking 2 arguments (as opposed to the single argument of RuntimeError).

Code explicitly raising new errors of this class outside of the CSV library implementation itself breaks since it doesn't include the second argument (a line number).

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0