|
mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
The mxlib error codes and utility functions.
Functions | |
| static constexpr const char * | mx::errorName (const error_t &errc) |
| Convert a error_t code to its name. | |
| static constexpr const char * | mx::errorMessage (const error_t &errc) |
| Get the descriptive message for a error_t code. | |
| static constexpr error_t | mx::errno2error_t (const int &err) |
| Convert an errno code to error_t. | |
|
strong |
The mxlib error codes.
Definition at line 25 of file error_t.hpp.
|
staticconstexpr |
Convert an errno code to error_t.
| [in] | err | the errno code to convert |
Definition at line 2056 of file error_t.hpp.
References eacces, eaddrinuse, eaddrnotavail, eafnosupport, eagain, ealready, ebadf, ebadmsg, ebusy, ecanceled, echild, econnaborted, econnrefused, econnreset, edestaddrreq, edom, eexist, efault, efbig, ehostunreach, eidrm, eilseq, einprogress, eintr, einval, eio, eisconn, eisdir, eloop, emfile, emlink, emsgsize, enametoolong, enetdown, enetreset, enetunreach, enfile, enobufs, enodata, enodev, enoent, enoexec, enolck, enolink, enomem, enomsg, enoprotoopt, enospc, enosr, enostr, enosys, enotconn, enotdir, enotempty, enotrecoverable, enotsock, enotsup, enotty, enxio, eoverflow, eownerdead, eperm, epipe, eproto, eprotonosupport, eprototype, erange, erofs, error, espipe, esrch, etime, etimedout, etxtbsy, and exdev.
Referenced by mx::ioutils::createDirectories(), mx::ioutils::dir_exists_is(), mx::ioutils::exists(), mx::math::randomSeed(), mx::ioutils::readBinVector(), mx::ioutils::readColumns(), mx::ioutils::readRawBinary(), mx::ipc::runCommand(), unitTest::errorTest::error_tTest::TEST_CASE(), mx::ioutils::writeBinVector(), and mx::ioutils::writeRawBinary().
|
staticconstexpr |
Get the descriptive message for a error_t code.
| [in] | errc | the error code for which to get the message |
Definition at line 1245 of file error_t.hpp.
References allocerr, cuda_address_of_constant, cuda_already_acquired, cuda_already_mapped, cuda_api_failure_base, cuda_array_is_mapped, cuda_assert, cuda_call_requires_newer_driver, cuda_captured_event, cuda_cdp_not_supported, cuda_cdp_version_mismatch, cuda_compat_not_supported_on_device, cuda_contained, cuda_context_is_destroyed, cuda_cooperative_launch_too_large, cuda_cudart_unloading, cuda_device_already_in_use, cuda_device_not_licensed, cuda_device_uninitialized, cuda_devices_unavailable, cuda_duplicate_surface_name, cuda_duplicate_texture_name, cuda_duplicate_variable_name, cuda_e_c_c_uncorrectable, cuda_external_device, cuda_file_not_found, cuda_function_not_loaded, cuda_graph_exec_update_failure, cuda_graph_recapture_failure, cuda_hardware_stack_error, cuda_host_memory_already_registered, cuda_host_memory_not_registered, cuda_illegal_address, cuda_illegal_instruction, cuda_illegal_state, cuda_incompatible_driver_context, cuda_initialization_error, cuda_insufficient_driver, cuda_invalid_address_space, cuda_invalid_channel_descriptor, cuda_invalid_cluster_size, cuda_invalid_configuration, cuda_invalid_device, cuda_invalid_device_function, cuda_invalid_device_pointer, cuda_invalid_filter_setting, cuda_invalid_graphics_context, cuda_invalid_host_pointer, cuda_invalid_kernel_image, cuda_invalid_memcpy_direction, cuda_invalid_norm_setting, cuda_invalid_pc, cuda_invalid_pitch_value, cuda_invalid_ptx, cuda_invalid_resource_configuration, cuda_invalid_resource_handle, cuda_invalid_resource_type, cuda_invalid_source, cuda_invalid_surface, cuda_invalid_symbol, cuda_invalid_texture, cuda_invalid_texture_binding, cuda_invalid_value, cuda_jit_compilation_disabled, cuda_jit_compiler_not_found, cuda_launch_failure, cuda_launch_file_scoped_surf, cuda_launch_file_scoped_tex, cuda_launch_incompatible_texturing, cuda_launch_max_depth_exceeded, cuda_launch_out_of_resources, cuda_launch_pending_count_exceeded, cuda_launch_timeout, cuda_lossy_query, cuda_map_buffer_object_failed, cuda_memory_allocation, cuda_memory_value_too_large, cuda_misaligned_address, cuda_missing_configuration, cuda_mixed_device_execution, cuda_mps_client_terminated, cuda_mps_connection_failed, cuda_mps_max_clients_reached, cuda_mps_max_connections_reached, cuda_mps_rpc_failure, cuda_mps_server_not_ready, cuda_no_device, cuda_no_kernel_image_for_device, cuda_not_mapped, cuda_not_mapped_as_array, cuda_not_mapped_as_pointer, cuda_not_permitted, cuda_not_ready, cuda_not_supported, cuda_not_yet_implemented, cuda_nvlink_uncorrectable, cuda_operating_system, cuda_peer_access_already_enabled, cuda_peer_access_not_enabled, cuda_peer_access_unsupported, cuda_prior_launch_failure, cuda_profiler_already_started, cuda_profiler_already_stopped, cuda_profiler_disabled, cuda_profiler_not_initialized, cuda_set_on_active_process, cuda_shared_object_init_failed, cuda_shared_object_symbol_not_found, cuda_software_validity_not_established, cuda_startup_failure, cuda_stream_capture_implicit, cuda_stream_capture_invalidated, cuda_stream_capture_isolation, cuda_stream_capture_merge, cuda_stream_capture_unjoined, cuda_stream_capture_unmatched, cuda_stream_capture_unsupported, cuda_stream_capture_wrong_thread, cuda_stream_detached, cuda_stub_library, cuda_success, cuda_symbol_not_found, cuda_sync_depth_exceeded, cuda_synchronization_error, cuda_system_driver_mismatch, cuda_system_not_ready, cuda_tensor_memory_leak, cuda_texture_fetch_failed, cuda_texture_not_bound, cuda_timeout, cuda_too_many_peers, cuda_unknown, cuda_unmap_buffer_object_failed, cuda_unsupported_dev_side_sync, cuda_unsupported_exec_affinity, cuda_unsupported_limit, cuda_unsupported_ptx_version, cuda_version_translation, dirempty, dirnotfound, e2big, eacces, eaddrinuse, eaddrnotavail, eafnosupport, eagain, ealready, ebadf, ebadmsg, ebusy, ecanceled, echild, econnaborted, econnrefused, econnreset, edestaddrreq, edom, eexist, efault, efbig, ehostunreach, eidrm, eilseq, einprogress, eintr, einval, eio, eisconn, eisdir, eloop, emfile, emlink, emsgsize, enametoolong, enetdown, enetreset, enetunreach, enfile, enobufs, enodata, enodev, enoent, enoexec, enolck, enolink, enomem, enomsg, enoprotoopt, enospc, enosr, enostr, enosys, enotconn, enotdir, enotempty, enotrecoverable, enotsock, enotsup, enotty, envnotset, enxio, eopnotsupp, eoverflow, eownerdead, eperm, epipe, eproto, eprotonosupport, eprototype, erange, erofs, error, espipe, esrch, etime, etimedout, etxtbsy, ewouldblock, exception, exdev, filecerr, fileempty, filenotfound, fileoerr, filererr, filesystem, filewerr, fits_angle_too_big, fits_approx_wcs_key, fits_array_too_big, fits_bad_atable_format, fits_bad_bitpix, fits_bad_btable_format, fits_bad_c2d, fits_bad_c2f, fits_bad_c2i, fits_bad_col_num, fits_bad_data_fill, fits_bad_datatype, fits_bad_date, fits_bad_decim, fits_bad_dimen, fits_bad_doublekey, fits_bad_elem_num, fits_bad_f2c, fits_bad_fileptr, fits_bad_floatkey, fits_bad_gcount, fits_bad_group_attach, fits_bad_group_detach, fits_bad_group_id, fits_bad_hdu_num, fits_bad_header_fill, fits_bad_heap_ptr, fits_bad_i2c, fits_bad_index_key, fits_bad_intkey, fits_bad_keychar, fits_bad_logicalkey, fits_bad_naxes, fits_bad_naxis, fits_bad_nettimeout, fits_bad_option, fits_bad_order, fits_bad_pcount, fits_bad_pix_num, fits_bad_row_num, fits_bad_row_width, fits_bad_simple, fits_bad_tbcol, fits_bad_tdim, fits_bad_tfields, fits_bad_tform, fits_bad_tform_dtype, fits_bad_url_prefix, fits_bad_wcs_proj, fits_bad_wcs_val, fits_col_not_found, fits_col_not_unique, fits_col_too_wide, fits_data_compression_err, fits_data_decompression_err, fits_driver_init_failed, fits_end_junk, fits_end_of_file, fits_file_not_closed, fits_file_not_created, fits_file_not_opened, fits_group_not_found, fits_hdu_already_member, fits_hdu_already_tracked, fits_header_not_empty, fits_identical_pointers, fits_key_no_exist, fits_key_out_bounds, fits_member_not_found, fits_memory_allocation, fits_neg_axis, fits_neg_bytes, fits_neg_file_pos, fits_neg_rows, fits_neg_width, fits_ngp_bad_arg, fits_ngp_empty_curline, fits_ngp_eof, fits_ngp_err_fopen, fits_ngp_inc_nesting, fits_ngp_no_memory, fits_ngp_nul_ptr, fits_ngp_read_err, fits_ngp_token_not_expect, fits_ngp_unread_queue_full, fits_no_bitpix, fits_no_end, fits_no_gcount, fits_no_matching_driver, fits_no_naxes, fits_no_naxis, fits_no_null, fits_no_pcount, fits_no_quote, fits_no_simple, fits_no_tbcol, fits_no_tfields, fits_no_tform, fits_no_wcs_key, fits_no_xtension, fits_not_ascii_col, fits_not_atable, fits_not_btable, fits_not_group_table, fits_not_image, fits_not_logical_col, fits_not_pos_int, fits_not_table, fits_not_vari_len, fits_null_input_ptr, fits_num_overflow, fits_parse_bad_col, fits_parse_bad_output, fits_parse_bad_type, fits_parse_lrg_vector, fits_parse_no_output, fits_parse_syntax_err, fits_range_parse_error, fits_read_error, fits_readonly_file, fits_same_file, fits_seek_error, fits_shared_again, fits_shared_badarg, fits_shared_ipcerr, fits_shared_nofile, fits_shared_nomem, fits_shared_noresize, fits_shared_notinit, fits_shared_nulptr, fits_shared_tabfull, fits_too_many_drivers, fits_too_many_files, fits_too_many_hdus_tracked, fits_unknown_ext, fits_unknown_rec, fits_url_parse_error, fits_value_undefined, fits_wcs_error, fits_write_error, fits_zero_scale, freeerr, gnuploterr, invalidarg, invalidconfig, lapackerr, liberr, noerror, notfound, notimpl, paramnotset, parseerr, procerr, sizeerr, std_bad_alloc, std_bad_optional_access, std_domain_error, std_exception, std_filesystem_error, std_format_error, std_future_error, std_invalid_argument, std_ios_base_failure, std_length_error, std_logic_error, std_out_of_range, std_overflow_error, std_range_error, std_runtime_error, std_underflow_error, and timeout.
Referenced by unitTest::errorTest::error_tTest::TEST_CASE().
|
staticconstexpr |
Convert a error_t code to its name.
| [in] | errc | the error code to convert |
Definition at line 434 of file error_t.hpp.
References allocerr, cuda_address_of_constant, cuda_already_acquired, cuda_already_mapped, cuda_api_failure_base, cuda_array_is_mapped, cuda_assert, cuda_call_requires_newer_driver, cuda_captured_event, cuda_cdp_not_supported, cuda_cdp_version_mismatch, cuda_compat_not_supported_on_device, cuda_contained, cuda_context_is_destroyed, cuda_cooperative_launch_too_large, cuda_cudart_unloading, cuda_device_already_in_use, cuda_device_not_licensed, cuda_device_uninitialized, cuda_devices_unavailable, cuda_duplicate_surface_name, cuda_duplicate_texture_name, cuda_duplicate_variable_name, cuda_e_c_c_uncorrectable, cuda_external_device, cuda_file_not_found, cuda_function_not_loaded, cuda_graph_exec_update_failure, cuda_graph_recapture_failure, cuda_hardware_stack_error, cuda_host_memory_already_registered, cuda_host_memory_not_registered, cuda_illegal_address, cuda_illegal_instruction, cuda_illegal_state, cuda_incompatible_driver_context, cuda_initialization_error, cuda_insufficient_driver, cuda_invalid_address_space, cuda_invalid_channel_descriptor, cuda_invalid_cluster_size, cuda_invalid_configuration, cuda_invalid_device, cuda_invalid_device_function, cuda_invalid_device_pointer, cuda_invalid_filter_setting, cuda_invalid_graphics_context, cuda_invalid_host_pointer, cuda_invalid_kernel_image, cuda_invalid_memcpy_direction, cuda_invalid_norm_setting, cuda_invalid_pc, cuda_invalid_pitch_value, cuda_invalid_ptx, cuda_invalid_resource_configuration, cuda_invalid_resource_handle, cuda_invalid_resource_type, cuda_invalid_source, cuda_invalid_surface, cuda_invalid_symbol, cuda_invalid_texture, cuda_invalid_texture_binding, cuda_invalid_value, cuda_jit_compilation_disabled, cuda_jit_compiler_not_found, cuda_launch_failure, cuda_launch_file_scoped_surf, cuda_launch_file_scoped_tex, cuda_launch_incompatible_texturing, cuda_launch_max_depth_exceeded, cuda_launch_out_of_resources, cuda_launch_pending_count_exceeded, cuda_launch_timeout, cuda_lossy_query, cuda_map_buffer_object_failed, cuda_memory_allocation, cuda_memory_value_too_large, cuda_misaligned_address, cuda_missing_configuration, cuda_mixed_device_execution, cuda_mps_client_terminated, cuda_mps_connection_failed, cuda_mps_max_clients_reached, cuda_mps_max_connections_reached, cuda_mps_rpc_failure, cuda_mps_server_not_ready, cuda_no_device, cuda_no_kernel_image_for_device, cuda_not_mapped, cuda_not_mapped_as_array, cuda_not_mapped_as_pointer, cuda_not_permitted, cuda_not_ready, cuda_not_supported, cuda_not_yet_implemented, cuda_nvlink_uncorrectable, cuda_operating_system, cuda_peer_access_already_enabled, cuda_peer_access_not_enabled, cuda_peer_access_unsupported, cuda_prior_launch_failure, cuda_profiler_already_started, cuda_profiler_already_stopped, cuda_profiler_disabled, cuda_profiler_not_initialized, cuda_set_on_active_process, cuda_shared_object_init_failed, cuda_shared_object_symbol_not_found, cuda_software_validity_not_established, cuda_startup_failure, cuda_stream_capture_implicit, cuda_stream_capture_invalidated, cuda_stream_capture_isolation, cuda_stream_capture_merge, cuda_stream_capture_unjoined, cuda_stream_capture_unmatched, cuda_stream_capture_unsupported, cuda_stream_capture_wrong_thread, cuda_stream_detached, cuda_stub_library, cuda_success, cuda_symbol_not_found, cuda_sync_depth_exceeded, cuda_synchronization_error, cuda_system_driver_mismatch, cuda_system_not_ready, cuda_tensor_memory_leak, cuda_texture_fetch_failed, cuda_texture_not_bound, cuda_timeout, cuda_too_many_peers, cuda_unknown, cuda_unmap_buffer_object_failed, cuda_unsupported_dev_side_sync, cuda_unsupported_exec_affinity, cuda_unsupported_limit, cuda_unsupported_ptx_version, cuda_version_translation, dirempty, dirnotfound, e2big, eacces, eaddrinuse, eaddrnotavail, eafnosupport, eagain, ealready, ebadf, ebadmsg, ebusy, ecanceled, echild, econnaborted, econnrefused, econnreset, edestaddrreq, edom, eexist, efault, efbig, ehostunreach, eidrm, eilseq, einprogress, eintr, einval, eio, eisconn, eisdir, eloop, emfile, emlink, emsgsize, enametoolong, enetdown, enetreset, enetunreach, enfile, enobufs, enodata, enodev, enoent, enoexec, enolck, enolink, enomem, enomsg, enoprotoopt, enospc, enosr, enostr, enosys, enotconn, enotdir, enotempty, enotrecoverable, enotsock, enotsup, enotty, envnotset, enxio, eopnotsupp, eoverflow, eownerdead, eperm, epipe, eproto, eprotonosupport, eprototype, erange, erofs, error, espipe, esrch, etime, etimedout, etxtbsy, ewouldblock, exception, exdev, filecerr, fileempty, filenotfound, fileoerr, filererr, filesystem, filewerr, fits_angle_too_big, fits_approx_wcs_key, fits_array_too_big, fits_bad_atable_format, fits_bad_bitpix, fits_bad_btable_format, fits_bad_c2d, fits_bad_c2f, fits_bad_c2i, fits_bad_col_num, fits_bad_data_fill, fits_bad_datatype, fits_bad_date, fits_bad_decim, fits_bad_dimen, fits_bad_doublekey, fits_bad_elem_num, fits_bad_f2c, fits_bad_fileptr, fits_bad_floatkey, fits_bad_gcount, fits_bad_group_attach, fits_bad_group_detach, fits_bad_group_id, fits_bad_hdu_num, fits_bad_header_fill, fits_bad_heap_ptr, fits_bad_i2c, fits_bad_index_key, fits_bad_intkey, fits_bad_keychar, fits_bad_logicalkey, fits_bad_naxes, fits_bad_naxis, fits_bad_nettimeout, fits_bad_option, fits_bad_order, fits_bad_pcount, fits_bad_pix_num, fits_bad_row_num, fits_bad_row_width, fits_bad_simple, fits_bad_tbcol, fits_bad_tdim, fits_bad_tfields, fits_bad_tform, fits_bad_tform_dtype, fits_bad_url_prefix, fits_bad_wcs_proj, fits_bad_wcs_val, fits_col_not_found, fits_col_not_unique, fits_col_too_wide, fits_data_compression_err, fits_data_decompression_err, fits_driver_init_failed, fits_end_junk, fits_end_of_file, fits_file_not_closed, fits_file_not_created, fits_file_not_opened, fits_group_not_found, fits_hdu_already_member, fits_hdu_already_tracked, fits_header_not_empty, fits_identical_pointers, fits_key_no_exist, fits_key_out_bounds, fits_member_not_found, fits_memory_allocation, fits_neg_axis, fits_neg_bytes, fits_neg_file_pos, fits_neg_rows, fits_neg_width, fits_ngp_bad_arg, fits_ngp_empty_curline, fits_ngp_eof, fits_ngp_err_fopen, fits_ngp_inc_nesting, fits_ngp_no_memory, fits_ngp_nul_ptr, fits_ngp_read_err, fits_ngp_token_not_expect, fits_ngp_unread_queue_full, fits_no_bitpix, fits_no_end, fits_no_gcount, fits_no_matching_driver, fits_no_naxes, fits_no_naxis, fits_no_null, fits_no_pcount, fits_no_quote, fits_no_simple, fits_no_tbcol, fits_no_tfields, fits_no_tform, fits_no_wcs_key, fits_no_xtension, fits_not_ascii_col, fits_not_atable, fits_not_btable, fits_not_group_table, fits_not_image, fits_not_logical_col, fits_not_pos_int, fits_not_table, fits_not_vari_len, fits_null_input_ptr, fits_num_overflow, fits_parse_bad_col, fits_parse_bad_output, fits_parse_bad_type, fits_parse_lrg_vector, fits_parse_no_output, fits_parse_syntax_err, fits_range_parse_error, fits_read_error, fits_readonly_file, fits_same_file, fits_seek_error, fits_shared_again, fits_shared_badarg, fits_shared_ipcerr, fits_shared_nofile, fits_shared_nomem, fits_shared_noresize, fits_shared_notinit, fits_shared_nulptr, fits_shared_tabfull, fits_too_many_drivers, fits_too_many_files, fits_too_many_hdus_tracked, fits_unknown_ext, fits_unknown_rec, fits_url_parse_error, fits_value_undefined, fits_wcs_error, fits_write_error, fits_zero_scale, freeerr, gnuploterr, invalidarg, invalidconfig, lapackerr, liberr, noerror, notfound, notimpl, paramnotset, parseerr, procerr, sizeerr, std_bad_alloc, std_bad_optional_access, std_domain_error, std_exception, std_filesystem_error, std_format_error, std_future_error, std_invalid_argument, std_ios_base_failure, std_length_error, std_logic_error, std_out_of_range, std_overflow_error, std_range_error, std_runtime_error, std_underflow_error, and timeout.
Referenced by unitTest::errorTest::error_tTest::TEST_CASE().