초기커밋
This commit is contained in:
12
BrokerApiCore/Common/ResultFailException.cs
Normal file
12
BrokerApiCore/Common/ResultFailException.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace BrokerCore.Common;
|
||||
public class ResultFailException : ApiException
|
||||
{
|
||||
public ResultFailException(Result result, string? message = null) : base((int)result.ErrorCode,
|
||||
message ?? result.ResultString)
|
||||
{
|
||||
}
|
||||
|
||||
public ResultFailException(ServerErrorCode code, string message) : base((int)code, message)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user