SvgFormatException

The violation of the /v1 format by a document or scene — the sealed base of every failure the module's entry points raise.

parseSvg surfaces each format violation as a subtype of this class naming its condition, so one catch covers "this text does not load"; only XML well-formedness errors from the underlying reader fall outside the hierarchy. Messages end with the source line/column when the reader knows it. The serialize side shares the hierarchy: MissingViewBoxException, its one failure, is a subtype too.

Inheritors

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?