# GitHubNotificationApiException

Represents a failed GitHub notifications API request without exposing credentials or response bodies.

Class 

`IntelligenceX.Telemetry.GitHub`

**Namespace**

`IntelligenceX.Telemetry.GitHub`

**Assembly**

`IntelligenceX`

**Source**

[GitHubNotificationModels.cs:152](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubNotificationModels.cs#L152)

**Base**

`Exception`

**Implements**

`ISerializable`

**Modifiers**

sealed

Represents a failed GitHub notifications API request without exposing credentials or response bodies.

## Inheritance

- Exception
- GitHubNotificationApiException

Filter members 

Show inherited

## Constructors

`public GitHubNotificationApiException(int statusCode, string message)` [#](#constructor-ctor-int32-string)

[GitHubNotificationModels.cs:152](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubNotificationModels.cs#L152)

Initializes an API exception.

Parameters

**statusCode int required**

**message string required**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual Exception GetBaseException()` [#](#method-getbaseexception)

Inherited from Exception

Returns

`Exception`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public virtual void GetObjectData(SerializationInfo info, StreamingContext context)` [#](#method-getobjectdata-serializationinfo-streamingcontext)

Inherited from Exception

`Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")` `EditorBrowsable(1)`

Parameters

**info SerializationInfo required**

**context StreamingContext required**

`public Type GetType()` [#](#method-gettype)

Inherited from Exception

Returns

`Type`

`public override string ToString()` [#](#method-tostring)

Inherited from Exception

Returns

`string`

## Properties

`public int StatusCode { get; }` [#](#property-statuscode)

[GitHubNotificationModels.cs:157](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubNotificationModels.cs#L157)

Gets the HTTP status code returned by GitHub.

## Inherited Properties

`public MethodBase? TargetSite { get; }` [#](#property-targetsite)

Inherited from Exception

`public virtual string Message { get; }` [#](#property-message)

Inherited from Exception

`public virtual IDictionary Data { get; }` [#](#property-data)

Inherited from Exception

`public Exception? InnerException { get; }` [#](#property-innerexception)

Inherited from Exception

`public virtual string? HelpLink { get; set; }` [#](#property-helplink)

Inherited from Exception

`public virtual string? Source { get; set; }` [#](#property-source)

Inherited from Exception

`public int HResult { get; set; }` [#](#property-hresult)

Inherited from Exception

`public virtual string? StackTrace { get; }` [#](#property-stacktrace)

Inherited from Exception

<!-- PowerForge markdown artifact sha256:788604CABCAD28C7D8EBD54B82D4179488EE8E2B6ECA89082065A6F8F34A411D -->
