 class Symbol extends HasSettings
   @parse: (key, data, settings) ->
     unless data?
-      throw new SVGTilerException "Attempt to create symbol '#{key}' without data"
+      throw new SVGTilerError "Attempt to create symbol '#{key}' without data"
     else if typeof data == 'function'
       new DynamicSymbol key, data, settings
     else if data.function?

    else if Array.isArray data
      new Mappings data
    else
      throw new SVGTilerException "Could not convert into Mapping(s): #{data}"
  push: (map) ->
    @maps.push map
  lookup: (key) ->


extensionOf = (filename) -> path.extname(filename).toLowerCase()

class SVGTilerError extends Error
  constructor: (message) ->
    super message
    @name = 'SVGTilerError'

parseBox = (box) ->
  return null unless box
