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 SourceContentstackException()
The ContentstackError class is abstraction of general exception class.
Declaration
public ContentstackException()
ContentstackException(Exception)
The ContentstackError class is abstraction of general exception class.
Declaration
public ContentstackException(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | Exception |
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 SourceMessage
This is error message.
Declaration
public string Message
Field Value
Type | Description |
---|---|
System.String |
ResponseType
This is type of response.
Declaration
public ResponseType ResponseType
Field Value
Type | Description |
---|---|
Contentstack.Core.Internals.ResponseType |
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 SourceErrorCode
This is error code.
Declaration
[JsonProperty("error_code")]
public int ErrorCode { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ErrorMessage
This is error message.
Declaration
[JsonProperty("error_message")]
public string ErrorMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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