Skip to content

easyextensionsentityframeworkcoreexceptions WebApiException

BigMakCode edited this page Aug 5, 2024 · 1 revision

WebApiException Public class

Description

Base web api exception.

Diagram

  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
Loading

Members

Properties

Public properties

Type Name Methods
string ObjectName
Object name.
get
HttpStatusCode StatusCode
HTTP status code.
get

Methods

Public methods

Returns Name
ErrorModel GetErrorModel()
Get error model.

Details

Summary

Base web api exception.

Inheritance

Constructors

WebApiException

public WebApiException(HttpStatusCode statusCode, string objectName, string message)
Arguments
Type Name Description
HttpStatusCode statusCode HTTP status code.
string objectName Object name.
string message Exception message.
Summary

Base web api exception.

Methods

GetErrorModel

public virtual ErrorModel GetErrorModel()
Summary

Get error model.

Returns

Error model.

Properties

StatusCode

public virtual HttpStatusCode StatusCode { get; }
Summary

HTTP status code.

ObjectName

public string ObjectName { get; }
Summary

Object name.

Generated with ModularDoc

Clone this wiki locally