Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
#pragma once

#include <exception>

namespace cryptolens_io {

namespace v20190401 {

class ActivateError : public std::exception {
private:
  ActivateError(int reason);

  int reason_;
public:
  static const int UNKNOWN_SERVER_REPLY      = 0;
  static const int INVALID_ACCESS_TOKEN      = 1;
  static const int ACCESS_DENIED             = 2;
  static const int INCORRECT_INPUT_PARAMETER = 3;
  static const int PRODUCT_NOT_FOUND         = 4;
  static const int KEY_NOT_FOUND             = 5;
  static const int KEY_BLOCKED               = 6;
  static const int DEVICE_LIMIT_REACHED      = 7;

  static ActivateError from_reason(int reason);

  static ActivateError from_server_response(char const* server_response);

  int get_reason() const noexcept;

  virtual const char * what() const noexcept;
};

} // namespace v20190401

namespace v20180502 {

using ::cryptolens_io::v20190401::ActivateError;

} // namespace v20180502

namespace latest {

using ::cryptolens_io::v20190401::ActivateError;

} // namespace latest

} // namespace cryptolens_io