Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
0.4.0
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
29 lines (26 sloc) 717 Bytes
using System;
namespace Improbable.Gdk.Core
{
/// <summary>
/// Describes why the connection failed.
/// </summary>
public enum ConnectionErrorReason
{
CannotEstablishConnection,
DeploymentNotFound,
InvalidConfig,
ExceededMaximumRetries,
EditorApplicationStopped
}
/// <summary>
/// Represents an error that occurs when a connection attempt failed.
/// </summary>
public class ConnectionFailedException : Exception
{
public ConnectionErrorReason Reason;
public ConnectionFailedException(string message, ConnectionErrorReason reason) : base(message)
{
Reason = reason;
}
}
}