8 types derived from XamlException
System.Xaml (7)
System\Xaml\XamlException.cs (7)
90
public class XamlParseException :
XamlException
121
public class XamlObjectWriterException :
XamlException
138
public class XamlDuplicateMemberException :
XamlException
180
public class XamlInternalException :
XamlException
200
public class XamlSchemaException :
XamlException
216
public class XamlObjectReaderException :
XamlException
239
public class XamlXmlWriterException :
XamlException
System.Xaml.Tests (1)
System\Xaml\XamlExceptionTests.cs (1)
86
private class SubXamlException :
XamlException
21 instantiations of XamlException
System.Xaml (7)
System\Xaml\WriterDelegate.cs (2)
76
_addDelegate = delegate { throw new
XamlException
(SR.WriterIsClosed); };
79
_addLineInfoDelegate = delegate { throw new
XamlException
(SR.WriterIsClosed); };
System\Xaml\XamlNodeList.cs (5)
56
throw new
XamlException
(SR.CloseXamlWriterBeforeReading);
61
throw new
XamlException
(SR.SchemaContextNotInitialized);
83
throw new
XamlException
(SR.CannotWriteClosedWriter);
91
throw new
XamlException
(SR.CannotWriteClosedWriter);
106
throw new
XamlException
(SR.CloseXamlWriterBeforeReading);
System.Xaml.Tests (14)
System\Xaml\XamlDuplicateMemberExceptionTests.cs (1)
65
yield return new object?[] { "message", new
XamlException
("message", null, 1, 2), 1, 2 };
System\Xaml\XamlExceptionTests.cs (7)
16
var exception = new
XamlException
();
26
var exception = new
XamlException
("message");
39
yield return new object?[] { "message", new
XamlException
("message", null, 1, 2), 1, 2 };
46
var exception = new
XamlException
(message, innerException, lineNumber,linePosition);
57
yield return new object?[] { "message", new
XamlException
("message", null, 1, 2), 1, 2 };
64
var exception = new
XamlException
(message, innerException);
81
var exception = new
XamlException
();
System\Xaml\XamlInternalExceptionTests.cs (1)
37
yield return new object?[] { "message", new
XamlException
("message", null, 1, 2), 1, 2 };
System\Xaml\XamlObjectReaderExceptionTests.cs (1)
37
yield return new object?[] { "message", new
XamlException
("message", null, 1, 2), 1, 2 };
System\Xaml\XamlObjectWriterExceptionTests.cs (1)
37
yield return new object?[] { "message", new
XamlException
("message", null, 1, 2), 1, 2 };
System\Xaml\XamlParseExceptionTests.cs (1)
37
yield return new object?[] { "message", new
XamlException
("message", null, 1, 2), 1, 2 };
System\Xaml\XamlSchemaExceptionTests.cs (1)
37
yield return new object?[] { "message", new
XamlException
("message", null, 1, 2), 1, 2 };
System\Xaml\XamlXmlWriterExceptionTests.cs (1)
37
yield return new object?[] { "message", new
XamlException
("message", null, 1, 2), 1, 2 };
44 references to XamlException
PresentationFramework (3)
System\Windows\Markup\XamlReader.cs (3)
513
if (e is System.Xaml.
XamlException
)
515
System.Xaml.
XamlException
xe = (System.Xaml.
XamlException
)e;
System.Xaml (27)
System\Xaml\Context\NameFixupToken.cs (4)
89
XamlException
IAddLineInfo.WithLineInfo(
XamlException
ex)
198
XamlException
IAddLineInfo.WithLineInfo(
XamlException
ex)
System\Xaml\Context\ObjectWriterContext.cs (2)
262
public
XamlException
WithLineInfo(
XamlException
ex)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
1060
XamlException
IAddLineInfo.WithLineInfo(
XamlException
ex)
2709
XamlException
IAddLineInfo.WithLineInfo(
XamlException
ex)
System\Xaml\Parser\XamlScanner.cs (2)
881
private
XamlException
LineInfo(
XamlException
e)
System\Xaml\Runtime\ClrObjectRuntime.cs (5)
602
if (CriticalExceptions.IsCriticalException(e) || e is
XamlException
)
627
if (CriticalExceptions.IsCriticalException(e) || e is
XamlException
)
698
private
XamlException
CreateException(string message)
703
private
XamlException
CreateException(string message, Exception innerException)
705
XamlException
ex;
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (7)
144
catch (
XamlException
ex)
175
catch (
XamlException
ex)
206
catch (
XamlException
e)
238
catch (
XamlException
e)
300
catch (
XamlException
e)
347
catch (
XamlException
e)
376
catch (
XamlException
e)
System\Xaml\XamlException.cs (1)
24
if (innerException is
XamlException
xex)
System\Xaml\XamlRuntime.cs (2)
16
XamlException
WithLineInfo(
XamlException
ex);
System.Xaml.Tests (14)
System\Xaml\XamlExceptionTests.cs (5)
16
var
exception = new XamlException();
26
var
exception = new XamlException("message");
46
var
exception = new XamlException(message, innerException, lineNumber,linePosition);
64
var
exception = new XamlException(message, innerException);
81
var
exception = new XamlException();
System\Xaml\XamlNodeListTests.cs (7)
212
Assert.Throws<
XamlException
>(() => list.GetReader());
226
Assert.Throws<
XamlException
>(() => list.GetReader());
601
catch (TargetInvocationException ex) when (ex.InnerException is
XamlException
)
624
catch (TargetInvocationException ex) when (ex.InnerException is
XamlException
)
644
catch (TargetInvocationException ex) when (ex.InnerException is
XamlException
)
664
catch (TargetInvocationException ex) when (ex.InnerException is
XamlException
)
683
catch (TargetInvocationException ex) when (ex.InnerException is
XamlException
)
System\Xaml\XamlNodeQueueTests.cs (2)
513
catch (TargetInvocationException ex) when (ex.InnerException is
XamlException
)
536
catch (TargetInvocationException ex) when (ex.InnerException is
XamlException
)