xtd 0.2.0
Loading...
Searching...
No Matches
exceptions

Definition

Contains exceptions definitions.

Classes

class  xtd::access_violation_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::argument_exception
 The exception that is thrown when one of the arguments provided to a method is not valid. More...
 
class  xtd::argument_null_exception
 The exception that is thrown when one of the arguments provided to a method is null. More...
 
class  xtd::argument_out_of_range_exception
 The exception that is thrown when one of the arguments provided to a method is out of range. More...
 
class  xtd::arithmetic_exception
 The exception that is thrown for errors in an arithmetic, casting, or conversion operation. More...
 
class  xtd::collections::generic::key_not_found_exception
 The exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection. More...
 
class  xtd::collections::key_not_found_exception
 The exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection. More...
 
class  xtd::divided_by_zero_exception
 The exception that is thrown when there is an attempt to divide an integral or decimal value by zero. More...
 
class  xtd::domain_exception
 The exception that is thrown for errors in domain. That is, situations where the inputs are outside of the domain on which an operation is defined.. More...
 
class  xtd::exception
 Defines the base class for predefined exceptions in the xtd namespace. More...
 
class  xtd::format_exception
 The exception that is thrown when the format of an argument does not meet the parameter specifications of the invoked method. More...
 
class  xtd::h_result
 Contains the HRESULT values used by xtd. More...
 
class  xtd::index_out_of_range_exception
 The exception that is thrown when an attempt is made to access an element of an array with an index that is outside the bounds of the array. More...
 
class  xtd::interrupt_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::invalid_cast_exception
 The exception that is thrown for invalid casting or explicit conversion. More...
 
class  xtd::invalid_operation_exception
 The exception that is thrown when the format of an argument does not meet the parameter specifications of the invoked method. More...
 
class  xtd::invalid_program_exception
 The exception that is thrown when a program contains invalid metadata. Generally this indicates a bug in the compiler that generated the program. More...
 
class  xtd::io::directory_not_found_exception
 The exception that is thrown when part of a file or directory cannot be found. More...
 
class  xtd::io::drive_not_found_exception
 The exception that is thrown when trying to access a drive or share that is not available. More...
 
class  xtd::io::end_of_stream_exception
 The exception that is thrown when reading is attempted past the end of a stream. More...
 
class  xtd::io::file_format_exception
 The exception that is thrown when the format of an argument does not meet the parameter specifications of the invoked method. More...
 
class  xtd::io::file_load_exception
 The exception that is thrown when a managed assembly is found but cannot be loaded. More...
 
class  xtd::io::file_not_found_exception
 The exception that is thrown when an attempt to access a file that does not exist on disk fails. More...
 
class  xtd::io::io_exception
 The exception that is thrown when an I/O error occurs. More...
 
class  xtd::io::path_too_long_exception
 The exception that is thrown when a path or file name is longer than the system-defined maximum length. More...
 
class  xtd::length_exception
 The exception that is thrown when an attempts to exceed implementation defined length limits for some object. More...
 
class  xtd::net::cookie_exception
 The exception that is thrown when an error is made adding a xtd::net::cookie to a xtd::net::cookie_container. More...
 
class  xtd::net::protocol_violation_exception
 The exception that is thrown when an error is made adding a xtd::net::cookie to a xtd::net::cookie_container. More...
 
class  xtd::net::sockets::socket_exception
 The exception that is thrown when a socket error occurs. More...
 
class  xtd::net::web_exception
 The exception that is thrown when an error is made adding a xtd::net::cookie to a xtd::net::cookie_container. More...
 
class  xtd::not_finite_number_exception
 The exception that is thrown when a floating-point value is positive infinity, negative infinity, or Not-a-Number (NaN). More...
 
class  xtd::not_implemented_exception
 The exception that is thrown when a requested method or operation is not implemented. More...
 
class  xtd::not_supported_exception
 The exception that is thrown when an invoked method is not supported, or when there is an attempt to read, seek, or write to a stream that does not support the invoked functionality. More...
 
class  xtd::null_pointer_exception
 The exception that is thrown when there is an attempt to dereference a null object pointer. More...
 
class  xtd::object_closed_exception
 The exception that is thrown when one of the arguments provided to a method is not valid. More...
 
class  xtd::operation_canceled_exception
 The exception that is thrown in a thread upon cancellation of an operation that the thread was executing. More...
 
class  xtd::out_of_memory_exception
 The exception that is thrown when one of the arguments provided to a method is not valid. More...
 
class  xtd::overflow_exception
 The exception that is thrown when an arithmetic, casting, or conversion operation in a checked context results in an overflow. More...
 
class  xtd::platform_not_supported_exception
 The exception that is thrown when a feature does not run on a particular platform. More...
 
class  xtd::rank_exception
 The exception that is thrown when an array with the wrong number of dimensions is passed to a method. More...
 
class  xtd::security::security_exception
 The exception that is thrown when an I/O error occurs. More...
 
class  xtd::software_termination_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::system_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::threading::abandoned_mutex_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::barrier_post_phase_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::lock_recursion_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::semaphore_full_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::threading::synchronization_lock_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::tasks::task_canceled_exception
 Represents an exception used to communicate task cancellation. More...
 
class  xtd::threading::thread_abort_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::threading::thread_interrupted_exception
 The exception that is thrown when a Thread is interrupted while it is in a waiting state. More...
 
class  xtd::threading::thread_state_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::wait_handle_cannot_be_opened_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::time_zone_not_found_exception
 The exception that is thrown when the time allotted for a process or operation has expired. More...
 
class  xtd::timeout_exception
 The exception that is thrown when the time allotted for a process or operation has expired. More...
 
class  xtd::unauthorized_access_exception
 The exception that is thrown when one of the arguments provided to a method is not valid. More...
 
class  xtd::underflow_exception
 The exception that is thrown when an arithmetic, casting, or conversion operation in a checked context results in an underflow. More...
 
class  xtd::uri_format_exception
 The exception that is thrown when an invalid Uniform Resource Identifier (URI) is detected. More...
 
class  xtd::uri_template_match_exception
 Represents an error when matching a Uri to a UriTemplateTable. More...
 
class  xtd::xml_syntax_exception
 The exception that is thrown when there is a syntax error in XML parsing. More...
 
class  xtd::tunit::abort_error
 Exception thow when abort. More...
 
class  xtd::tunit::assert_error
 Exception thow when an assertion failed. More...
 
class  xtd::tunit::ignore_error
 Exception to be thrown when something is ignored. More...
 

Functions

const std::error_category & xtd::h_result_category () noexcept
 Obtains a reference to the static error category object for h_result errors. The object is required to override the virtual function error_category::name() to return a pointer to the string "h_result_category". It is used to identify error conditions that correspond to the xtd::h_result error codes.
 
std::error_code xtd::make_error_code (int h_result) noexcept
 Creates error code value for xtd::h_result h_result.
 

Function Documentation

◆ h_result_category()

const std::error_category & xtd::h_result_category ( )
noexcept

#include <xtd.core/include/xtd/h_result_category.h>

Obtains a reference to the static error category object for h_result errors. The object is required to override the virtual function error_category::name() to return a pointer to the string "h_result_category". It is used to identify error conditions that correspond to the xtd::h_result error codes.

Returns
A reference to the static object of unspecified runtime type, derived from std::error_category.
Namespace
xtd
Library
xtd.core

◆ make_error_code()

std::error_code xtd::make_error_code ( int  h_result)
noexcept

#include <xtd.core/include/xtd/make_error_code.h>

Creates error code value for xtd::h_result h_result.

Parameters
h_resultxtd::h_result error code to create error code for.
Returns
Error code corresponding to h_result.
Namespace
xtd
Library
xtd.core