Search Results for

    Show / Hide Table of Contents

    Class ServiceError

    Inheritance
    object
    ServiceError
    Implements
    IServiceError
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.IO.Networking.RESTApi
    Assembly: Glitch9.IO.dll
    Syntax
    public sealed class ServiceError : IServiceError

    Constructors

    | Edit this page View Source

    ServiceError(string, string, string, string, long?, IReadOnlyDictionary<string, JToken>)

    Declaration
    public ServiceError(string message, string type = null, string code = null, string param = null, long? statusCode = null, IReadOnlyDictionary<string, JToken> data = null)
    Parameters
    Type Name Description
    string message
    string type
    string code
    string param
    long? statusCode
    IReadOnlyDictionary<string, JToken> data

    Properties

    | Edit this page View Source

    Code

    Declaration
    public string Code { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Data

    Declaration
    public IReadOnlyDictionary<string, JToken> Data { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, JToken>
    | Edit this page View Source

    Message

    Declaration
    public string Message { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Param

    Declaration
    public string Param { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    StatusCode

    Declaration
    public long? StatusCode { get; }
    Property Value
    Type Description
    long?
    | Edit this page View Source

    Type

    Declaration
    public string Type { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    GetErrorMessage(bool)

    Declaration
    public string GetErrorMessage(bool verbose = false)
    Parameters
    Type Name Description
    bool verbose
    Returns
    Type Description
    string
    | Edit this page View Source

    ToInnerException()

    Declaration
    public Exception ToInnerException()
    Returns
    Type Description
    Exception
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    IServiceError

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation