Class AuthenticationException
AuthenticationException represents a runtime exception from authentication.
Inherited Members
Namespace: Unity.Services.Authentication
Syntax
public sealed class AuthenticationException : RequestFailedException, ISerializable, _Exception
Methods
Create(Int32, String, Exception)
Creates the exception base on errorCode range. If the errorCode is less than AuthenticationErrorCodes.MinValue it creates a RequestFailedException. Otherwise it creates an AuthenticationException
Declaration
public static RequestFailedException Create(int errorCode, string message, Exception innerException = null)
Parameters
Type | Name | Description |
---|---|---|
Int32 | errorCode | Gets the error code for the current exception |
String | message | Gets a message that describes the current exception. |
Exception | innerException | Gets the Exception instance that caused the current exception. |
Returns
Type | Description |
---|---|
RequestFailedException | The built exception, either an AuthenticationException or a RequestFailedException |