mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 20:39:29 +08:00
(UnknownFormatException): propagate inner exception.
This commit is contained in:
parent
4969c7023e
commit
e0bbb0e7ac
@ -481,7 +481,7 @@ namespace GameRes
|
|||||||
if (FormatCatalog.Instance.LastError is OperationCanceledException)
|
if (FormatCatalog.Instance.LastError is OperationCanceledException)
|
||||||
throw FormatCatalog.Instance.LastError;
|
throw FormatCatalog.Instance.LastError;
|
||||||
else
|
else
|
||||||
throw new UnknownFormatException();
|
throw new UnknownFormatException (FormatCatalog.Instance.LastError);
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -675,5 +675,6 @@ namespace GameRes
|
|||||||
public class UnknownFormatException : FileFormatException
|
public class UnknownFormatException : FileFormatException
|
||||||
{
|
{
|
||||||
public UnknownFormatException () : base (garStrings.MsgUnknownFormat) { }
|
public UnknownFormatException () : base (garStrings.MsgUnknownFormat) { }
|
||||||
|
public UnknownFormatException (Exception inner) : base (garStrings.MsgUnknownFormat, inner) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user