Search Results for

    Show / Hide Table of Contents

    Class ContentstackException

    The ContentstackError class is abstraction of general exception class.

    Inheritance
    System.Object
    System.Exception
    ContentstackException
    Implements
    System.Runtime.InteropServices._Exception
    System.Runtime.Serialization.ISerializable
    Inherited Members
    System.Exception.GetBaseException()
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    System.Exception.GetType()
    System.Exception.ToString()
    System.Exception.Data
    System.Exception.HelpLink
    System.Exception.HResult
    System.Exception.InnerException
    System.Exception.Source
    System.Exception.StackTrace
    System.Exception.TargetSite
    System.Exception.SerializeObjectState
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Contentstack.Core.Internals
    Assembly: Contentstack.Core.dll
    Syntax
    public class ContentstackException : Exception, _Exception, ISerializable

    Constructors

    | Improve this Doc View Source

    ContentstackException()

    The ContentstackError class is abstraction of general exception class.

    Declaration
    public ContentstackException()
    | Improve this Doc View Source

    ContentstackException(Exception)

    The ContentstackError class is abstraction of general exception class.

    Declaration
    public ContentstackException(Exception exception)
    Parameters
    Type Name Description
    System.Exception exception

    Exception

    | Improve this Doc View Source

    ContentstackException(String)

    The ContentstackError class is abstraction of general exception class.

    Declaration
    public ContentstackException(string errorMessage)
    Parameters
    Type Name Description
    System.String errorMessage

    Error Message

    Fields

    | Improve this Doc View Source

    Message

    This is error message.

    Declaration
    public string Message
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    ResponseType

    This is type of response.

    Declaration
    public ResponseType ResponseType
    Field Value
    Type Description
    Contentstack.Core.Internals.ResponseType
    | Improve this Doc View Source

    StatusCode

    This is http response status code of REST request to Contentstack.

    Declaration
    public HttpStatusCode StatusCode
    Field Value
    Type Description
    System.Net.HttpStatusCode

    Properties

    | Improve this Doc View Source

    ErrorCode

    This is error code.

    Declaration
    [JsonProperty("error_code")]
    public int ErrorCode { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    ErrorMessage

    This is error message.

    Declaration
    [JsonProperty("error_message")]
    public string ErrorMessage { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Errors

    Set of errors in detail.

    Declaration
    [JsonProperty("errors")]
    public Dictionary<string, object> Errors { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.Object>

    Implements

    System.Runtime.InteropServices._Exception
    System.Runtime.Serialization.ISerializable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2022 Contentstack. All Rights Reserved