Please sign in to comment.
Psych::SyntaxError now inherits from RuntimeError
Previously Psych::SyntaxError inherited from SyntaxError. Since SyntaxError does not inherit from StandardError a plain rescue could not capture a YAML parse error. This made code that needed to handle psych errors slightly more complex. Psych::SyntaxError now inherits from Psych::Error (allowing room for future expansion of psych errors that can be caught under the same umbrella) and inherits from RuntimeError.
- Loading branch information...
Showing with 26 additions and 2 deletions.