Unosquare
    Show / Hide Table of Contents

    Class JsonRequestException

    Represents errors that occurs requesting a JSON file through HTTP.

    Inheritance
    Object
    Exception
    JsonRequestException
    Implements
    ISerializable
    _Exception
    Inherited Members
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.Message
    Exception.Data
    Exception.InnerException
    Exception.TargetSite
    Exception.StackTrace
    Exception.HelpLink
    Exception.Source
    Exception.HResult
    Exception.SerializeObjectState
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.MemberwiseClone()
    Namespace: Swan.Net
    Syntax
    [Serializable]
    public class JsonRequestException : Exception, ISerializable, _Exception

    Constructors

    JsonRequestException(Uri, HttpMethod, Int32, String)

    Initializes a new instance of the JsonRequestException class.

    Declaration
    public JsonRequestException(Uri url, HttpMethod method, int httpErrorCode = 500, string errorContent = null)
    Parameters
    Type Name Description
    Uri url

    The URL.

    HttpMethod method

    The method.

    Int32 httpErrorCode

    The HTTP error code.

    String errorContent

    Content of the error.

    Properties

    HttpErrorCode

    Gets the HTTP error code.

    Declaration
    public int HttpErrorCode { get; }
    Property Value
    Type Description
    Int32

    The HTTP error code.

    HttpErrorContent

    Gets the content of the HTTP error.

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

    The content of the HTTP error.

    Method

    Gets the method.

    Declaration
    public HttpMethod Method { get; }
    Property Value
    Type Description
    HttpMethod

    The method.

    Url

    Gets the URL.

    Declaration
    public Uri Url { get; }
    Property Value
    Type Description
    Uri

    The URL.

    Methods

    ToString()

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

    Implements

    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception

    See Also

    Exception

    Comments

    Back to top Copyright © 2017-2019 Unosquare