Packages

PostCSS for Elixir - A tool for transforming CSS. An Elixir implementation of the popular PostCSS JavaScript library, providing CSS parsing, AST manipulation, and stringification capabilities.

Current section

Files

Jump to
postcss lib post_css css_syntax_error.ex
Raw

lib/post_css/css_syntax_error.ex

defmodule PostCSS.CssSyntaxError do
@moduledoc """
Exception raised when CSS parsing fails.
"""
defexception [:message, :line, :column, :source]
@type t :: %__MODULE__{
message: String.t(),
line: integer() | nil,
column: integer() | nil,
source: String.t() | nil
}
def new(message, line \\ nil, column \\ nil, source \\ nil) do
%__MODULE__{
message: message,
line: line,
column: column,
source: source
}
end
end