1 /* ///////////////////////////////////////////////////////////////////////
7 * Brief: The Synchronous Error
10 * Copyright (c) 2008-2020, Waruqi All rights reserved.
11 * //////////////////////////////////////////////////////////////////// */
13 #ifndef EXTL_ERROR_SYNCH_ERROR_H
14 #define EXTL_ERROR_SYNCH_ERROR_H
16 /*!\file synch_error.h
17 * \brief The Synchronous Error
20 # error synch_error.h need be supported by c++.
23 /* ///////////////////////////////////////////////////////////////////////
28 /* ///////////////////////////////////////////////////////////////////////
33 /*!\brief synch_error class
35 * \ingroup extl_group_error
43 typedef error_base base_type
;
44 typedef synch_error class_type
;
45 typedef base_type::code_type code_type
;
46 typedef base_type::string_type string_type
;
47 typedef base_type::char_type char_type
;
50 /// \name Constructors
53 explicit_k
synch_error(char_type
const* reason
= NULL
, code_type error_code
= 0)
54 : base_type(reason
, error_code
)
61 virtual char_type
const* get_default_reason() const
63 return "invalid synchronous error";
67 /* ///////////////////////////////////////////////////////////////////////
72 /* //////////////////////////////////////////////////////////////////// */
73 #endif /* EXTL_ERROR_SYNCH_ERROR_H */
74 /* //////////////////////////////////////////////////////////////////// */