Skip to content

Commit 007387c

Browse files
authored
feat: enhance UserFriendlyException (#717)
* feat:Enhance UserFriendlyException * fix:remove sdk * feat:init * fix:format
1 parent fdab5c8 commit 007387c

File tree

286 files changed

+17
-5266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

286 files changed

+17
-5266
lines changed

src/BuildingBlocks/Exception/Masa.BuildingBlocks.Exceptions/MasaException.cs

+8
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ public MasaException(string errorCode, LogLevel? logLevel, params object[] param
9191
{
9292
}
9393

94+
public MasaException(string message, Exception? innerException, string errorCode, LogLevel? logLevel = null, params object[] parameters)
95+
: base(message, innerException)
96+
{
97+
_errorCode = errorCode;
98+
_parameters = parameters;
99+
_logLevel = logLevel;
100+
}
101+
94102
public MasaException(Exception? innerException, string errorCode, LogLevel? logLevel = null, params object[] parameters)
95103
: base(null, innerException)
96104
{

src/BuildingBlocks/Exception/Masa.BuildingBlocks.Exceptions/UserFriendlyException.cs

+9
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ public UserFriendlyException(
3333
{
3434
}
3535

36+
public UserFriendlyException(
37+
string errorCode,
38+
string message,
39+
LogLevel? logLevel,
40+
params object[] parameters)
41+
: base(message, null, errorCode, logLevel, parameters)
42+
{
43+
}
44+
3645
public UserFriendlyException(
3746
Exception? innerException,
3847
string errorCode,

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Consts/CacheKeyConsts.cs

-9
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Consts/IdentityClaimConsts.cs

-15
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Consts/PropertyConsts.cs

-9
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/AuthenticationTypes.cs

-9
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/GenderTypes.cs

-10
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/PasswordTypes.cs

-10
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/RegisterFieldTypes.cs

-15
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/SendEmailTypes.cs

-15
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/SendMsgCodeTypes.cs

-14
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/StaffTypes.cs

-10
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/SubjectTypes.cs

-12
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/TeamTypes.cs

-10
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/ThirdPartyIdpLoginResultTypes.cs

-10
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/ThirdPartyIdpTypes.cs

-13
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/UserRegisterTypes.cs

-12
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Masa.BuildingBlocks.StackSdks.Auth.Contracts.csproj

-14
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/MasaUser.cs

-27
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/AddThirdPartyUserModel.cs

-17
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/AddUserModel.cs

-34
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/AddressValueModel.cs

-33
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/AppModel.cs

-19
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/BindUserRolesModel.cs

-11
This file was deleted.

src/BuildingBlocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/CollectMenuModel.cs

-11
This file was deleted.

0 commit comments

Comments
 (0)