Docs / UI

Glossary: MarkupException

The members of MarkupException, in alphabetical order.

Color legend plain property method

A markup that can’t be read: what is wrong, and where (the line and the column, counted from 1 as text editors count them). UiMarkup.Load throws it after disposing every element it made.

A sealed class of the BorrowedTorch.UI.Markup package (namespace BorrowedTorch.UI.Markup), deriving from Exception. The markup page shows it in context.

Names are colored by what they are: a property, a method or an event; values and fields keep the plain color.

Properties

Column 🠆

int · Read-only. The column of the mistake, from 1; 0 when the place isn’t known.

InnerException 🠆

Exception · Read-only, from Exception. The exception behind the mistake: the XML reader’s for XML that isn’t well formed, or the one a constructor, a setter or a converter threw. null when there is none.

Line 🠆

int · Read-only. The line of the mistake, from 1; 0 when the place isn’t known.

Message 🠆

string · Read-only, from Exception. The place and the reason: Line 4, column 17: Button has no property Txt to set.

Reason 🠆

string · Read-only. What is wrong, without the place. For a value that can’t be read, the attribute’s name and the reason UiMarkup.ReadValue gives for the same text: Margin: '1, 2, 3, 4, 5' is no all, or left, top[, right[, bottom]].

Methods

MarkupException() 🠆

MarkupException(string reason, int line, int column, Exception innerException = null) · Creates the exception, its Message made of the place and the reason.

Parameter Type Description
reason string What is wrong, without the place.
line int The line, from 1.
column int The column, from 1.
innerException Exception The exception behind the mistake, null when there is none.