Skip to content

PostNotFoundException

Namespace: SlottyMedia.Backend.Exceptions.Services.PostExceptions

Represents an exception that is thrown when a requested post is not found.

public class PostNotFoundException : SlottyMedia.LoggingProvider.BaseException`1[[SlottyMedia.Backend.Exceptions.Services.PostExceptions.PostNotFoundException, SlottyMedia, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Runtime.Serialization.ISerializable

Inheritance ObjectException → BaseException<PostNotFoundException> → PostNotFoundException
Implements ISerializable

Properties

TargetSite

public MethodBase TargetSite { get; }

Property Value

MethodBase

Message

public string Message { get; }

Property Value

String

Data

public IDictionary Data { get; }

Property Value

IDictionary

InnerException

public Exception InnerException { get; }

Property Value

Exception

public string HelpLink { get; set; }

Property Value

String

Source

public string Source { get; set; }

Property Value

String

HResult

public int HResult { get; set; }

Property Value

Int32

StackTrace

public string StackTrace { get; }

Property Value

String

Constructors

PostNotFoundException(String)

Initializes a new instance of the PostNotFoundException class with a specified error message.

public PostNotFoundException(string message)

Parameters

message String
The message that describes the error.

PostNotFoundException(String, Exception)

Initializes a new instance of the PostNotFoundException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public PostNotFoundException(string message, Exception innerException)

Parameters

message String
The message that describes the error.

innerException Exception
The exception that is the cause of the current exception.