/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.4.1
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.frostwire.jlibtorrent.swig;

public final class libtorrent_errors {
  public final static libtorrent_errors libtorrent_no_error = new libtorrent_errors("libtorrent_no_error", libtorrent_jni.libtorrent_no_error_get());
  public final static libtorrent_errors file_collision = new libtorrent_errors("file_collision");
  public final static libtorrent_errors failed_hash_check = new libtorrent_errors("failed_hash_check");
  public final static libtorrent_errors torrent_is_no_dict = new libtorrent_errors("torrent_is_no_dict");
  public final static libtorrent_errors torrent_missing_info = new libtorrent_errors("torrent_missing_info");
  public final static libtorrent_errors torrent_info_no_dict = new libtorrent_errors("torrent_info_no_dict");
  public final static libtorrent_errors torrent_missing_piece_length = new libtorrent_errors("torrent_missing_piece_length");
  public final static libtorrent_errors torrent_missing_name = new libtorrent_errors("torrent_missing_name");
  public final static libtorrent_errors torrent_invalid_name = new libtorrent_errors("torrent_invalid_name");
  public final static libtorrent_errors torrent_invalid_length = new libtorrent_errors("torrent_invalid_length");
  public final static libtorrent_errors torrent_file_parse_failed = new libtorrent_errors("torrent_file_parse_failed");
  public final static libtorrent_errors torrent_missing_pieces = new libtorrent_errors("torrent_missing_pieces");
  public final static libtorrent_errors torrent_invalid_hashes = new libtorrent_errors("torrent_invalid_hashes");
  public final static libtorrent_errors too_many_pieces_in_torrent = new libtorrent_errors("too_many_pieces_in_torrent");
  public final static libtorrent_errors invalid_swarm_metadata = new libtorrent_errors("invalid_swarm_metadata");
  public final static libtorrent_errors invalid_bencoding = new libtorrent_errors("invalid_bencoding");
  public final static libtorrent_errors no_files_in_torrent = new libtorrent_errors("no_files_in_torrent");
  public final static libtorrent_errors invalid_escaped_string = new libtorrent_errors("invalid_escaped_string");
  public final static libtorrent_errors session_is_closing = new libtorrent_errors("session_is_closing");
  public final static libtorrent_errors duplicate_torrent = new libtorrent_errors("duplicate_torrent");
  public final static libtorrent_errors invalid_torrent_handle = new libtorrent_errors("invalid_torrent_handle");
  public final static libtorrent_errors invalid_entry_type = new libtorrent_errors("invalid_entry_type");
  public final static libtorrent_errors missing_info_hash_in_uri = new libtorrent_errors("missing_info_hash_in_uri");
  public final static libtorrent_errors file_too_short = new libtorrent_errors("file_too_short");
  public final static libtorrent_errors unsupported_url_protocol = new libtorrent_errors("unsupported_url_protocol");
  public final static libtorrent_errors url_parse_error = new libtorrent_errors("url_parse_error");
  public final static libtorrent_errors peer_sent_empty_piece = new libtorrent_errors("peer_sent_empty_piece");
  public final static libtorrent_errors parse_failed = new libtorrent_errors("parse_failed");
  public final static libtorrent_errors invalid_file_tag = new libtorrent_errors("invalid_file_tag");
  public final static libtorrent_errors missing_info_hash = new libtorrent_errors("missing_info_hash");
  public final static libtorrent_errors mismatching_info_hash = new libtorrent_errors("mismatching_info_hash");
  public final static libtorrent_errors invalid_hostname = new libtorrent_errors("invalid_hostname");
  public final static libtorrent_errors invalid_port = new libtorrent_errors("invalid_port");
  public final static libtorrent_errors port_blocked = new libtorrent_errors("port_blocked");
  public final static libtorrent_errors expected_close_bracket_in_address = new libtorrent_errors("expected_close_bracket_in_address");
  public final static libtorrent_errors destructing_torrent = new libtorrent_errors("destructing_torrent");
  public final static libtorrent_errors timed_out = new libtorrent_errors("timed_out");
  public final static libtorrent_errors upload_upload_connection = new libtorrent_errors("upload_upload_connection");
  public final static libtorrent_errors uninteresting_upload_peer = new libtorrent_errors("uninteresting_upload_peer");
  public final static libtorrent_errors invalid_info_hash = new libtorrent_errors("invalid_info_hash");
  public final static libtorrent_errors torrent_paused = new libtorrent_errors("torrent_paused");
  public final static libtorrent_errors invalid_have = new libtorrent_errors("invalid_have");
  public final static libtorrent_errors invalid_bitfield_size = new libtorrent_errors("invalid_bitfield_size");
  public final static libtorrent_errors too_many_requests_when_choked = new libtorrent_errors("too_many_requests_when_choked");
  public final static libtorrent_errors invalid_piece = new libtorrent_errors("invalid_piece");
  public final static libtorrent_errors no_memory = new libtorrent_errors("no_memory");
  public final static libtorrent_errors torrent_aborted = new libtorrent_errors("torrent_aborted");
  public final static libtorrent_errors self_connection = new libtorrent_errors("self_connection");
  public final static libtorrent_errors invalid_piece_size = new libtorrent_errors("invalid_piece_size");
  public final static libtorrent_errors timed_out_no_interest = new libtorrent_errors("timed_out_no_interest");
  public final static libtorrent_errors timed_out_inactivity = new libtorrent_errors("timed_out_inactivity");
  public final static libtorrent_errors timed_out_no_handshake = new libtorrent_errors("timed_out_no_handshake");
  public final static libtorrent_errors timed_out_no_request = new libtorrent_errors("timed_out_no_request");
  public final static libtorrent_errors invalid_choke = new libtorrent_errors("invalid_choke");
  public final static libtorrent_errors invalid_unchoke = new libtorrent_errors("invalid_unchoke");
  public final static libtorrent_errors invalid_interested = new libtorrent_errors("invalid_interested");
  public final static libtorrent_errors invalid_not_interested = new libtorrent_errors("invalid_not_interested");
  public final static libtorrent_errors invalid_request = new libtorrent_errors("invalid_request");
  public final static libtorrent_errors invalid_hash_list = new libtorrent_errors("invalid_hash_list");
  public final static libtorrent_errors invalid_hash_piece = new libtorrent_errors("invalid_hash_piece");
  public final static libtorrent_errors invalid_cancel = new libtorrent_errors("invalid_cancel");
  public final static libtorrent_errors invalid_dht_port = new libtorrent_errors("invalid_dht_port");
  public final static libtorrent_errors invalid_suggest = new libtorrent_errors("invalid_suggest");
  public final static libtorrent_errors invalid_have_all = new libtorrent_errors("invalid_have_all");
  public final static libtorrent_errors invalid_have_none = new libtorrent_errors("invalid_have_none");
  public final static libtorrent_errors invalid_reject = new libtorrent_errors("invalid_reject");
  public final static libtorrent_errors invalid_allow_fast = new libtorrent_errors("invalid_allow_fast");
  public final static libtorrent_errors invalid_extended = new libtorrent_errors("invalid_extended");
  public final static libtorrent_errors invalid_message = new libtorrent_errors("invalid_message");
  public final static libtorrent_errors sync_hash_not_found = new libtorrent_errors("sync_hash_not_found");
  public final static libtorrent_errors invalid_encryption_constant = new libtorrent_errors("invalid_encryption_constant");
  public final static libtorrent_errors no_plaintext_mode = new libtorrent_errors("no_plaintext_mode");
  public final static libtorrent_errors no_rc4_mode = new libtorrent_errors("no_rc4_mode");
  public final static libtorrent_errors unsupported_encryption_mode = new libtorrent_errors("unsupported_encryption_mode");
  public final static libtorrent_errors unsupported_encryption_mode_selected = new libtorrent_errors("unsupported_encryption_mode_selected");
  public final static libtorrent_errors invalid_pad_size = new libtorrent_errors("invalid_pad_size");
  public final static libtorrent_errors invalid_encrypt_handshake = new libtorrent_errors("invalid_encrypt_handshake");
  public final static libtorrent_errors no_incoming_encrypted = new libtorrent_errors("no_incoming_encrypted");
  public final static libtorrent_errors no_incoming_regular = new libtorrent_errors("no_incoming_regular");
  public final static libtorrent_errors duplicate_peer_id = new libtorrent_errors("duplicate_peer_id");
  public final static libtorrent_errors torrent_removed = new libtorrent_errors("torrent_removed");
  public final static libtorrent_errors packet_too_large = new libtorrent_errors("packet_too_large");
  public final static libtorrent_errors reserved = new libtorrent_errors("reserved");
  public final static libtorrent_errors http_error = new libtorrent_errors("http_error");
  public final static libtorrent_errors missing_location = new libtorrent_errors("missing_location");
  public final static libtorrent_errors invalid_redirection = new libtorrent_errors("invalid_redirection");
  public final static libtorrent_errors redirecting = new libtorrent_errors("redirecting");
  public final static libtorrent_errors invalid_range = new libtorrent_errors("invalid_range");
  public final static libtorrent_errors no_content_length = new libtorrent_errors("no_content_length");
  public final static libtorrent_errors banned_by_ip_filter = new libtorrent_errors("banned_by_ip_filter");
  public final static libtorrent_errors too_many_connections = new libtorrent_errors("too_many_connections");
  public final static libtorrent_errors peer_banned = new libtorrent_errors("peer_banned");
  public final static libtorrent_errors stopping_torrent = new libtorrent_errors("stopping_torrent");
  public final static libtorrent_errors too_many_corrupt_pieces = new libtorrent_errors("too_many_corrupt_pieces");
  public final static libtorrent_errors torrent_not_ready = new libtorrent_errors("torrent_not_ready");
  public final static libtorrent_errors peer_not_constructed = new libtorrent_errors("peer_not_constructed");
  public final static libtorrent_errors session_closing = new libtorrent_errors("session_closing");
  public final static libtorrent_errors optimistic_disconnect = new libtorrent_errors("optimistic_disconnect");
  public final static libtorrent_errors torrent_finished = new libtorrent_errors("torrent_finished");
  public final static libtorrent_errors no_router = new libtorrent_errors("no_router");
  public final static libtorrent_errors metadata_too_large = new libtorrent_errors("metadata_too_large");
  public final static libtorrent_errors invalid_metadata_request = new libtorrent_errors("invalid_metadata_request");
  public final static libtorrent_errors invalid_metadata_size = new libtorrent_errors("invalid_metadata_size");
  public final static libtorrent_errors invalid_metadata_offset = new libtorrent_errors("invalid_metadata_offset");
  public final static libtorrent_errors invalid_metadata_message = new libtorrent_errors("invalid_metadata_message");
  public final static libtorrent_errors pex_message_too_large = new libtorrent_errors("pex_message_too_large");
  public final static libtorrent_errors invalid_pex_message = new libtorrent_errors("invalid_pex_message");
  public final static libtorrent_errors invalid_lt_tracker_message = new libtorrent_errors("invalid_lt_tracker_message");
  public final static libtorrent_errors too_frequent_pex = new libtorrent_errors("too_frequent_pex");
  public final static libtorrent_errors no_metadata = new libtorrent_errors("no_metadata");
  public final static libtorrent_errors invalid_dont_have = new libtorrent_errors("invalid_dont_have");
  public final static libtorrent_errors requires_ssl_connection = new libtorrent_errors("requires_ssl_connection");
  public final static libtorrent_errors invalid_ssl_cert = new libtorrent_errors("invalid_ssl_cert");
  public final static libtorrent_errors not_an_ssl_torrent = new libtorrent_errors("not_an_ssl_torrent");
  public final static libtorrent_errors banned_by_port_filter = new libtorrent_errors("banned_by_port_filter");
  public final static libtorrent_errors invalid_session_handle = new libtorrent_errors("invalid_session_handle");
  public final static libtorrent_errors invalid_listen_socket = new libtorrent_errors("invalid_listen_socket");
  public final static libtorrent_errors invalid_hash_request = new libtorrent_errors("invalid_hash_request");
  public final static libtorrent_errors invalid_hashes = new libtorrent_errors("invalid_hashes");
  public final static libtorrent_errors invalid_hash_reject = new libtorrent_errors("invalid_hash_reject");
  public final static libtorrent_errors missing_file_sizes = new libtorrent_errors("missing_file_sizes", libtorrent_jni.missing_file_sizes_get());
  public final static libtorrent_errors no_files_in_resume_data = new libtorrent_errors("no_files_in_resume_data");
  public final static libtorrent_errors missing_pieces = new libtorrent_errors("missing_pieces");
  public final static libtorrent_errors mismatching_number_of_files = new libtorrent_errors("mismatching_number_of_files");
  public final static libtorrent_errors mismatching_file_size = new libtorrent_errors("mismatching_file_size");
  public final static libtorrent_errors mismatching_file_timestamp = new libtorrent_errors("mismatching_file_timestamp");
  public final static libtorrent_errors not_a_dictionary = new libtorrent_errors("not_a_dictionary");
  public final static libtorrent_errors invalid_blocks_per_piece = new libtorrent_errors("invalid_blocks_per_piece");
  public final static libtorrent_errors missing_slots = new libtorrent_errors("missing_slots");
  public final static libtorrent_errors too_many_slots = new libtorrent_errors("too_many_slots");
  public final static libtorrent_errors invalid_slot_list = new libtorrent_errors("invalid_slot_list");
  public final static libtorrent_errors invalid_piece_index = new libtorrent_errors("invalid_piece_index");
  public final static libtorrent_errors pieces_need_reorder = new libtorrent_errors("pieces_need_reorder");
  public final static libtorrent_errors resume_data_not_modified = new libtorrent_errors("resume_data_not_modified");
  public final static libtorrent_errors invalid_save_path = new libtorrent_errors("invalid_save_path");
  public final static libtorrent_errors http_parse_error = new libtorrent_errors("http_parse_error", libtorrent_jni.http_parse_error_get());
  public final static libtorrent_errors http_missing_location = new libtorrent_errors("http_missing_location");
  public final static libtorrent_errors http_failed_decompress = new libtorrent_errors("http_failed_decompress");
  public final static libtorrent_errors no_i2p_router = new libtorrent_errors("no_i2p_router", libtorrent_jni.no_i2p_router_get());
  public final static libtorrent_errors no_i2p_endpoint = new libtorrent_errors("no_i2p_endpoint", libtorrent_jni.no_i2p_endpoint_get());
  public final static libtorrent_errors scrape_not_available = new libtorrent_errors("scrape_not_available", libtorrent_jni.scrape_not_available_get());
  public final static libtorrent_errors invalid_tracker_response = new libtorrent_errors("invalid_tracker_response");
  public final static libtorrent_errors invalid_peer_dict = new libtorrent_errors("invalid_peer_dict");
  public final static libtorrent_errors tracker_failure = new libtorrent_errors("tracker_failure");
  public final static libtorrent_errors invalid_files_entry = new libtorrent_errors("invalid_files_entry");
  public final static libtorrent_errors invalid_hash_entry = new libtorrent_errors("invalid_hash_entry");
  public final static libtorrent_errors invalid_peers_entry = new libtorrent_errors("invalid_peers_entry");
  public final static libtorrent_errors invalid_tracker_response_length = new libtorrent_errors("invalid_tracker_response_length");
  public final static libtorrent_errors invalid_tracker_transaction_id = new libtorrent_errors("invalid_tracker_transaction_id");
  public final static libtorrent_errors invalid_tracker_action = new libtorrent_errors("invalid_tracker_action");
  public final static libtorrent_errors announce_skipped = new libtorrent_errors("announce_skipped");
  public final static libtorrent_errors no_entropy = new libtorrent_errors("no_entropy", libtorrent_jni.no_entropy_get());
  public final static libtorrent_errors ssrf_mitigation = new libtorrent_errors("ssrf_mitigation");
  public final static libtorrent_errors blocked_by_idna = new libtorrent_errors("blocked_by_idna");
  public final static libtorrent_errors torrent_unknown_version = new libtorrent_errors("torrent_unknown_version", libtorrent_jni.torrent_unknown_version_get());
  public final static libtorrent_errors torrent_missing_file_tree = new libtorrent_errors("torrent_missing_file_tree");
  public final static libtorrent_errors torrent_missing_meta_version = new libtorrent_errors("torrent_missing_meta_version");
  public final static libtorrent_errors torrent_inconsistent_files = new libtorrent_errors("torrent_inconsistent_files");
  public final static libtorrent_errors torrent_missing_piece_layer = new libtorrent_errors("torrent_missing_piece_layer");
  public final static libtorrent_errors torrent_invalid_piece_layer = new libtorrent_errors("torrent_invalid_piece_layer");
  public final static libtorrent_errors torrent_missing_pieces_root = new libtorrent_errors("torrent_missing_pieces_root");
  public final static libtorrent_errors torrent_inconsistent_hashes = new libtorrent_errors("torrent_inconsistent_hashes");
  public final static libtorrent_errors torrent_invalid_pad_file = new libtorrent_errors("torrent_invalid_pad_file");
  public final static libtorrent_errors error_code_max = new libtorrent_errors("error_code_max");

  public final int swigValue() {
    return swigValue;
  }

  public String toString() {
    return swigName;
  }

  public static libtorrent_errors swigToEnum(int swigValue) {
    if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
      return swigValues[swigValue];
    for (int i = 0; i < swigValues.length; i++)
      if (swigValues[i].swigValue == swigValue)
        return swigValues[i];
    throw new IllegalArgumentException("No enum " + libtorrent_errors.class + " with value " + swigValue);
  }

  private libtorrent_errors(String swigName) {
    this.swigName = swigName;
    this.swigValue = swigNext++;
  }

  private libtorrent_errors(String swigName, int swigValue) {
    this.swigName = swigName;
    this.swigValue = swigValue;
    swigNext = swigValue+1;
  }

  private libtorrent_errors(String swigName, libtorrent_errors swigEnum) {
    this.swigName = swigName;
    this.swigValue = swigEnum.swigValue;
    swigNext = this.swigValue+1;
  }

  private static libtorrent_errors[] swigValues = { libtorrent_no_error, file_collision, failed_hash_check, torrent_is_no_dict, torrent_missing_info, torrent_info_no_dict, torrent_missing_piece_length, torrent_missing_name, torrent_invalid_name, torrent_invalid_length, torrent_file_parse_failed, torrent_missing_pieces, torrent_invalid_hashes, too_many_pieces_in_torrent, invalid_swarm_metadata, invalid_bencoding, no_files_in_torrent, invalid_escaped_string, session_is_closing, duplicate_torrent, invalid_torrent_handle, invalid_entry_type, missing_info_hash_in_uri, file_too_short, unsupported_url_protocol, url_parse_error, peer_sent_empty_piece, parse_failed, invalid_file_tag, missing_info_hash, mismatching_info_hash, invalid_hostname, invalid_port, port_blocked, expected_close_bracket_in_address, destructing_torrent, timed_out, upload_upload_connection, uninteresting_upload_peer, invalid_info_hash, torrent_paused, invalid_have, invalid_bitfield_size, too_many_requests_when_choked, invalid_piece, no_memory, torrent_aborted, self_connection, invalid_piece_size, timed_out_no_interest, timed_out_inactivity, timed_out_no_handshake, timed_out_no_request, invalid_choke, invalid_unchoke, invalid_interested, invalid_not_interested, invalid_request, invalid_hash_list, invalid_hash_piece, invalid_cancel, invalid_dht_port, invalid_suggest, invalid_have_all, invalid_have_none, invalid_reject, invalid_allow_fast, invalid_extended, invalid_message, sync_hash_not_found, invalid_encryption_constant, no_plaintext_mode, no_rc4_mode, unsupported_encryption_mode, unsupported_encryption_mode_selected, invalid_pad_size, invalid_encrypt_handshake, no_incoming_encrypted, no_incoming_regular, duplicate_peer_id, torrent_removed, packet_too_large, reserved, http_error, missing_location, invalid_redirection, redirecting, invalid_range, no_content_length, banned_by_ip_filter, too_many_connections, peer_banned, stopping_torrent, too_many_corrupt_pieces, torrent_not_ready, peer_not_constructed, session_closing, optimistic_disconnect, torrent_finished, no_router, metadata_too_large, invalid_metadata_request, invalid_metadata_size, invalid_metadata_offset, invalid_metadata_message, pex_message_too_large, invalid_pex_message, invalid_lt_tracker_message, too_frequent_pex, no_metadata, invalid_dont_have, requires_ssl_connection, invalid_ssl_cert, not_an_ssl_torrent, banned_by_port_filter, invalid_session_handle, invalid_listen_socket, invalid_hash_request, invalid_hashes, invalid_hash_reject, missing_file_sizes, no_files_in_resume_data, missing_pieces, mismatching_number_of_files, mismatching_file_size, mismatching_file_timestamp, not_a_dictionary, invalid_blocks_per_piece, missing_slots, too_many_slots, invalid_slot_list, invalid_piece_index, pieces_need_reorder, resume_data_not_modified, invalid_save_path, http_parse_error, http_missing_location, http_failed_decompress, no_i2p_router, no_i2p_endpoint, scrape_not_available, invalid_tracker_response, invalid_peer_dict, tracker_failure, invalid_files_entry, invalid_hash_entry, invalid_peers_entry, invalid_tracker_response_length, invalid_tracker_transaction_id, invalid_tracker_action, announce_skipped, no_entropy, ssrf_mitigation, blocked_by_idna, torrent_unknown_version, torrent_missing_file_tree, torrent_missing_meta_version, torrent_inconsistent_files, torrent_missing_piece_layer, torrent_invalid_piece_layer, torrent_missing_pieces_root, torrent_inconsistent_hashes, torrent_invalid_pad_file, error_code_max };
  private static int swigNext = 0;
  private final int swigValue;
  private final String swigName;
}

