Class ContentfulException
Represents errors that occurr when calling the Contentful APIs.
Inheritance
System.Object
System.Exception
ContentfulException
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace:Contentful.Core.Errors
Assembly:cs.temp.dll.dll
Syntax
public class ContentfulException : Exception, ISerializable, _Exception
Constructors
ContentfulException(Int32, String)
Initializes a new instance of the ContentfulException class.
Declaration
public ContentfulException(int statusCode, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | statusCode | The http status code of the exception. |
System.String | message | The message of the exception. |
Properties
ErrorDetails
The details of the exception.
Declaration
public ErrorDetails ErrorDetails { get; set; }
Property Value
Type | Description |
---|---|
ErrorDetails |
RequestId
The ID of the request to the Contentful API.
Declaration
public string RequestId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StatusCode
The http status code of the exception.
Declaration
public int StatusCode { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SystemProperties
Common system managed metadata properties.
Declaration
public SystemProperties SystemProperties { get; set; }
Property Value
Type | Description |
---|---|
SystemProperties |