Class ApiException
- Namespace
- XeroxDev.YTMDesktop.Companion.Exceptions
- Assembly
- XeroxDev.YTMDesktop.Companion.dll
Represents an exception that is thrown when an API error occurs.
[Serializable]
public class ApiException : Exception, ISerializable
- Inheritance
-
ApiException
- Implements
- Inherited Members
Constructors
ApiException(string, Exception, ErrorOutput)
Represents an exception that is thrown when an API error occurs.
public ApiException(string message, Exception innerException, ErrorOutput error)
Parameters
message
stringThe error message.
innerException
ExceptionThe inner exception.
error
ErrorOutputThe error output from the API.
ApiException(string, ErrorOutput)
Represents an exception that is thrown when an API error occurs.
public ApiException(string message, ErrorOutput error)
Parameters
message
stringThe error message.
error
ErrorOutputThe error output from the API.
ApiException(ErrorOutput)
Represents an exception that is thrown when an API error occurs.
public ApiException(ErrorOutput error)
Parameters
error
ErrorOutputThe error output from the API.
Properties
Error
The error output from the API.
public ErrorOutput Error { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()