-
Notifications
You must be signed in to change notification settings - Fork 0
easyextensionsentityframeworkcoreexceptions WebApiException
BigMakCode edited this page Aug 5, 2024
·
1 revision
Base web api exception.
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph EasyExtensions.EntityFrameworkCore.Exceptions
EasyExtensions.EntityFrameworkCore.Exceptions.WebApiException[[WebApiException]]
end
subgraph EasyExtensions.Abstractions
EasyExtensions.Abstractions.IHttpError[[IHttpError]]
class EasyExtensions.Abstractions.IHttpError interfaceStyle;
end
subgraph System
System.Exception[[Exception]]
end
EasyExtensions.Abstractions.IHttpError --> EasyExtensions.EntityFrameworkCore.Exceptions.WebApiException
System.Exception --> EasyExtensions.EntityFrameworkCore.Exceptions.WebApiException
Type | Name | Methods |
---|---|---|
string |
ObjectName Object name. |
get |
HttpStatusCode |
StatusCode HTTP status code. |
get |
Returns | Name |
---|---|
ErrorModel |
GetErrorModel ()Get error model. |
Base web api exception.
-
IHttpError
Exception
public WebApiException(HttpStatusCode statusCode, string objectName, string message)
Type | Name | Description |
---|---|---|
HttpStatusCode |
statusCode | HTTP status code. |
string |
objectName | Object name. |
string |
message | Exception message. |
Base web api exception.
public virtual ErrorModel GetErrorModel()
Get error model.
Error model.
public virtual HttpStatusCode StatusCode { get; }
HTTP status code.
public string ObjectName { get; }
Object name.
Generated with ModularDoc