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