Class Error
Error structure to return in response bodies.
public sealed class Error
- Inheritance
-
Error
- Inherited Members
Constructors
Error()
Parameterless ctor.
public Error()
Error(int, string)
Creates an Error using a specific error code and title.
public Error(int code, string title)
Parameters
Properties
Code
The error code (clients can switch on this number to for example pick a corresponding translated error title).
public int Code { get; set; }
Property Value
Title
Server-side error title to the client.
public string? Title { get; set; }
Property Value
Operators
implicit operator Error((int, string))
Allow direct conversions of tuples into Error instances.
public static implicit operator Error((int, string) errorContext)