163 references to ExceptionHelpers
PresentationFramework (163)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (88)
335global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateWithLanguage_0(ThisPtr, MarshalString.GetAbi(__language), out __retval)); 478global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 479return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 497global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 498return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 516global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 517return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 543global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_AlternateText_1(ThisPtr, out __retval)); 558global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_NormalizationFormat_2(ThisPtr, out __retval)); 568global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_SourceTextSegment_0(ThisPtr, out __retval)); 650global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 651return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 672global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 673return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 691global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 692return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 710global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 711return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 729global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 730return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 748global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 749return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 767global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 768return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 786global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 787return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 805global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 806return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 824global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 825return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 843global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 844return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 862global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 863return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 881global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 882return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 900global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 901return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 919global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 920return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 938global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 939return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 957global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 958return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 980global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetCodepointFromSurrogatePair_0(ThisPtr, highSurrogate, lowSurrogate, out __retval)); 988global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetSurrogatePairFromCodepoint_1(ThisPtr, codepoint, out __highSurrogate, out __lowSurrogate)); 996global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsHighSurrogate_2(ThisPtr, codepoint, out __retval)); 1003global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsLowSurrogate_3(ThisPtr, codepoint, out __retval)); 1010global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsSupplementary_4(ThisPtr, codepoint, out __retval)); 1017global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsNoncharacter_5(ThisPtr, codepoint, out __retval)); 1024global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsWhitespace_6(ThisPtr, codepoint, out __retval)); 1031global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsAlphabetic_7(ThisPtr, codepoint, out __retval)); 1038global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsCased_8(ThisPtr, codepoint, out __retval)); 1045global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsUppercase_9(ThisPtr, codepoint, out __retval)); 1052global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsLowercase_10(ThisPtr, codepoint, out __retval)); 1059global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsIdStart_11(ThisPtr, codepoint, out __retval)); 1066global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsIdContinue_12(ThisPtr, codepoint, out __retval)); 1073global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsGraphemeBase_13(ThisPtr, codepoint, out __retval)); 1080global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsGraphemeExtend_14(ThisPtr, codepoint, out __retval)); 1087global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetNumericType_15(ThisPtr, codepoint, out __retval)); 1094global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetGeneralCategory_16(ThisPtr, codepoint, out __retval)); 1162global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 1163return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 1181global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 1182return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 1200global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 1201return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 1227global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_AlternateForms_2(ThisPtr, out __retval)); 1242global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_SourceTextSegment_1(ThisPtr, out __retval)); 1254global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_Text_0(ThisPtr, out __retval)); 1314global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 1315return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 1333global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 1334return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 1349global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 1350return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 1368global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 1369return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 1395global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetTokenAt_1(ThisPtr, MarshalString.GetAbi(__text), startIndex, out __retval)); 1412global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetTokens_2(ThisPtr, MarshalString.GetAbi(__text), out __retval)); 1430global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.Tokenize_3(ThisPtr, MarshalString.GetAbi(__text), startIndex, WordSegmentsTokenizingHandler.GetAbi(__handler))); 1446global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_ResolvedLanguage_0(ThisPtr, out __retval)); 1502global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 1503return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 1529global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateWithLanguage_0(ThisPtr, MarshalString.GetAbi(__language), out __retval)); 1615global::WinRT.ExceptionHelpers.ThrowExceptionForHR(abiInvoke(ThisPtr, global::MS.Internal.WindowsRuntime.ABI.System.Collections.Generic.IEnumerable<global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegment>.GetAbi(__precedingWords), global::MS.Internal.WindowsRuntime.ABI.System.Collections.Generic.IEnumerable<global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegment>.GetAbi(__words))); 1646global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 1647return global::WinRT.ExceptionHelpers.GetHRForException(__exception__);
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (31)
87global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateLanguage_0(ThisPtr, MarshalString.GetAbi(__languageTag), out __retval)); 253global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 254return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 272global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 273return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 291global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 292return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 310global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 311return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 337global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_DisplayName_1(ThisPtr, out __retval)); 354global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_LanguageTag_0(ThisPtr, out __retval)); 371global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_NativeName_2(ThisPtr, out __retval)); 388global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_Script_3(ThisPtr, out __retval)); 437global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 438return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 462global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_LayoutDirection_0(ThisPtr, out __retval)); 511global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 512return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 538global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetExtensionSubtags_0(ThisPtr, MarshalString.GetAbi(__singleton), out __retval)); 592global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 593return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 619global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateLanguage_0(ThisPtr, MarshalString.GetAbi(__languageTag), out __retval)); 675global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 676return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 694global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 695return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 721global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsWellFormed_0(ThisPtr, MarshalString.GetAbi(__languageTag), out __retval)); 737global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_CurrentInputMethodLanguageTag_1(ThisPtr, out __retval)); 791global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 792return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 818global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.TrySetInputMethodLanguageTag_0(ThisPtr, MarshalString.GetAbi(__languageTag), out __retval));
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (12)
121ExceptionHelpers.SetErrorInfo(ex); 122return ExceptionHelpers.GetHRForException(ex); 139ExceptionHelpers.SetErrorInfo(ex); 140return ExceptionHelpers.GetHRForException(ex); 157ExceptionHelpers.SetErrorInfo(ex); 158return ExceptionHelpers.GetHRForException(ex); 175ExceptionHelpers.SetErrorInfo(ex); 176return ExceptionHelpers.GetHRForException(ex); 193ExceptionHelpers.SetErrorInfo(ex); 194return ExceptionHelpers.GetHRForException(ex); 354ExceptionHelpers.SetErrorInfo(ex); 355return ExceptionHelpers.GetHRForException(ex);
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (19)
134global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 135return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 173global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.First_0(ThisPtr, out __retval)); 300if (Marshal.GetHRForException(e) == ExceptionHelpers.E_CHANGED_STATE) 345ExceptionHelpers.ThrowExceptionForHR(ExceptionHelpers.E_BOUNDS); 376ExceptionHelpers.ThrowExceptionForHR(ExceptionHelpers.E_CHANGED_STATE); 481global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 482return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 502global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 503return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 520global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 521return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 539global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 540return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 577global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.MoveNext_2(ThisPtr, out __retval)); 591global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetMany_3(ThisPtr, __items_length, __items_data, out __retval)); 623global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_HasCurrent_1(ThisPtr, out __retval));
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (13)
96if (ExceptionHelpers.E_BOUNDS == ex.HResult) 124e.SetHResult(ExceptionHelpers.E_BOUNDS); 139ex.SetHResult(ExceptionHelpers.E_BOUNDS); 270global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 271return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 292global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 293return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 313global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 314return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 332global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__); 333return global::WinRT.ExceptionHelpers.GetHRForException(__exception__); 407global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetMany_3(ThisPtr, startIndex, __items_length, __items_data, out __retval)); 422global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.get_Size_1(ThisPtr, out __retval));