mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-06 06:55:06 +00:00
Always include an innerException when re-throwing
Hiding the previous thrown exception is a bad practice.
This commit is contained in:
parent
c644bac4e4
commit
3639ae3e88
2 changed files with 4 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ namespace TeleSharp.TL
|
|||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
throw new InvalidDataException("Constructor Invalid Or Context.Init Not Called !");
|
||||
throw new InvalidDataException("Constructor Invalid Or Context.Init Not Called !", ex);
|
||||
}
|
||||
if (t.IsSubclassOf(typeof(TLMethod)))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue