Skip to content

XMediator::Api::ShowError

Describes an error when trying to show an Ad.

Public Types

Name
enum class ErrorType { Unexpected = 1, NotRequested = 2, NoLongerAvailable = 3, Loading = 4, ShowFailed = 5, AlreadyUsed = 6}
Enum class containing causes for a show call to fail.

Public Functions

Name
ShowError(ErrorType type, string message, int? adapterCode =null, string errorName =null)
override bool Equals(object obj)
override int GetHashCode()
override string ToString()

Protected Functions

Name
bool Equals(ShowError other)

Public Properties

Name
ErrorType Type
The error type related to this error.
string Message
A message describing the error.
int? AdapterCode
An error code provided by the underlying adapter, if available.
string ErrorName
Name of the error, if available.

Public Types Documentation

enum ErrorType

Enumerator Value Description
Unexpected 1
NotRequested 2
NoLongerAvailable 3
Loading 4
ShowFailed 5
AlreadyUsed 6

Enum class containing causes for a show call to fail.

Public Functions Documentation

function ShowError

ShowError(
    ErrorType type,
    string message,
    int? adapterCode =null,
    string errorName =null
)

function Equals

override bool Equals(
    object obj
)

function GetHashCode

override int GetHashCode()

function ToString

override string ToString()

Protected Functions Documentation

function Equals

bool Equals(
    ShowError other
)

Public Property Documentation

property Type

ErrorType Type;

The error type related to this error.

property Message

string Message;

A message describing the error.

property AdapterCode

int? AdapterCode;

An error code provided by the underlying adapter, if available.

property ErrorName

string ErrorName;

Name of the error, if available.


Updated on 2024-11-07 at 18:31:49 +0000