class Calyx::Errors::UnsupportedFormat

Raised when the client attempts to load a grammar with an unsupported file extension. Only `.json` and `.yml` are valid.

Calyx::Grammar.load("grammar.toml")
# => Calyx::Errors::UnsupportedFormat: grammar.toml is not a valid JSON or YAML file

Public Class Methods

new(msg) click to toggle source
Calls superclass method
# File lib/calyx/errors.rb, line 62
def initialize(msg)
  super("#{File.basename(msg)} is not a valid JSON or YAML file")
end