Exceptions

APIException

namespace Objectia.Exceptions
{
    public class APIException : Exception
    {
        public APIException();
        public APIException(string message);
    }
}

APIConnectionException

namespace Objectia.Exceptions
{
    public class APIConnectionException : APIException
    {
        public APIConnectionException(string message);
    }
}

APITimeoutException

namespace Objectia.Exceptions
{
    public class APITimeoutException : APIException
    {
        public APITimeoutException(string message);
    }
}

ResponseException

namespace Objectia.Exceptions
{
    public class ResponseException : APIException
    {
        public int Status { get; set; }
        public string Code { get; set; }
        public ResponseException(int status, string message, string code = null);
        public ResponseException(Error error);
    }
}