-module(butterbee@internal@error). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). -define(FILEPATH, "src/butterbee/internal/error.gleam"). -export_type([web_socket_error/0, port_error/0, butterbee_error/0]). -if(?OTP_RELEASE >= 27). -define(MODULEDOC(Str), -moduledoc(Str)). -define(DOC(Str), -doc(Str)). -else. -define(MODULEDOC(Str), -compile([])). -define(DOC(Str), -compile([])). -endif. ?MODULEDOC(false). -type web_socket_error() :: {could_not_send_request, stratus:socket_reason()} | {could_not_start, stratus:socket_reason()} | {could_not_init, stratus:initialization_error()}. -type port_error() :: {socket_error, binary()} | {bind_error, binary()}. -type butterbee_error() :: {bidi_error, butterbidi@definition:error_response()} | browser_does_not_have_cmd | browser_does_not_have_profile_dir | browser_does_not_have_request | could_not_convert_to_local_value | {could_not_delete_profile_dir, simplifile:file_error()} | {could_not_get_id_from_send_command, gleam@json:decode_error()} | {could_not_get_id_from_socket_response, gleam@json:decode_error()} | {could_not_get_subject_from_socket_response, gleam@json:decode_error()} | {could_not_parse_response, gleam@json:decode_error()} | {could_not_parse_socket_response, gleam@json:decode_error()} | {could_not_parse_url, binary()} | could_not_start_session | {web_socket_error, web_socket_error()} | {create_port_dir_error, simplifile:file_error()} | {create_profile_dir_error, simplifile:file_error()} | {create_user_prefs_error, simplifile:file_error()} | driver_does_not_have_config | driver_does_not_have_context | driver_does_not_have_socket | driver_does_not_have_state | {file_error, simplifile:file_error()} | more_than_one_node_found | no_browsing_contexts | no_info_found | no_node_found | node_does_not_have_shared_id | node_text_is_null | node_is_not_a_local_value | node_not_found | {port_error, port_error()} | {read_port_dir_error, simplifile:file_error()} | {response_does_not_have_corresponding_request_id, integer()} | runner_error | {select_does_not_have_value, binary()} | unexpected_browsing_context_result_type | unexpected_get_tree_result_type | unexpected_new_result_type | unexpected_script_result_type | unexpected_session_result_type | unexpected_status_result_type | {to_bool_error, binary()}.