Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
exception Class Reference
[exception]
A low overhead exception base class. More...
#include <exception.h>
Inherited by array_exception, array_view_exception, array_wrapper_exception, bitset_exception, deque_exception, factory_exception, flat_map_exception, flat_multimap_exception, flat_multiset_exception, flat_set_exception, forward_list_exception, fsm_exception, fsm_exception, hash_exception, intrusive_forward_list_exception, intrusive_list_exception, intrusive_queue_exception, intrusive_stack_exception, link_exception, list_exception, map_exception, message_bus_exception, message_exception, message_router_exception, message_router_exception, multimap_exception, multiset_exception, observer_exception, optional_exception, pool_exception, priority_queue_exception, queue_exception, scheduler_exception, set_exception, stack_exception, string_exception, string_view_exception, task_exception, unordered_map_exception, unordered_multimap_exception, unordered_multiset_exception, unordered_set_exception, variant_exception, variant_pool_exception, and vector_exception.
Public Member Functions | |
exception (string_type reason_, string_type file_, numeric_type line_) | |
Constructor. | |
exception (string_type reason_, string_type file_, numeric_type line_) | |
Constructor. | |
string_type | what () const |
Gets the reason for the exception. | |
string_type | file_name () const |
Gets the file for the exception. | |
numeric_type | line_number () const |
Gets the line for the exception. |
Detailed Description
A low overhead exception base class.
Definition at line 46 of file exception.h.
Constructor & Destructor Documentation
exception | ( | string_type | reason_, |
string_type | file_, | ||
numeric_type | line_ | ||
) |
Constructor.
Definition at line 57 of file exception.h.
exception | ( | string_type | reason_, |
string_type | file_, | ||
numeric_type | line_ | ||
) |
Constructor.
Definition at line 67 of file exception.h.
Member Function Documentation
string_type file_name | ( | ) | const |
Gets the file for the exception.
- Returns:
- const char* to the file.
Definition at line 89 of file exception.h.
numeric_type line_number | ( | ) | const |
Gets the line for the exception.
- Returns:
- const char* to the line.
Definition at line 102 of file exception.h.
string_type what | ( | ) | const |
Gets the reason for the exception.
- Returns:
- const char* to the reason.
Definition at line 79 of file exception.h.
Generated on Tue Jul 12 2022 14:05:49 by
