Vixen
02b45cc4

SvgPathException

class Core/Vixen.Ui/SvgPath.cs:18
csharp
public sealed class SvgPathException

What was wrong with a piece of path data.

Read the guide page for this →

Remarks

⚠ An exception rather than a silently truncated path, and only for what cannot be read at all. A command letter nobody has defined, a number that is not a number, a path that opens with a curve and has no pen position — those are typos in a string somebody wrote, and a parser that answered them with the half it managed would put a shape on screen that is wrong in a way nobody can see the cause of. What is not an error is a path that ends early or a stray comma; see Parse.

Fields and properties (1)

  • public int Position

    Where in the data the fault is, as a character offset.

Methods (1)

  • public SvgPathException(string message, int position)

    Describes a fault.

Used by (3)

  • ReaderVixen.Ui
  • SvgPathVixen.Ui
  • SvgPathTestsVixen.Ui.Tests