common: fix indenting
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
e15c6fc25a
commit
c0e1163877
@ -433,47 +433,47 @@ namespace macstd
|
||||
};
|
||||
|
||||
|
||||
///
|
||||
/// Numerical runtime error
|
||||
///
|
||||
template <typename _Tn>
|
||||
class num_runtime_error : public std::runtime_error
|
||||
{
|
||||
public:
|
||||
typedef _Tn error_type; ///< Error number type
|
||||
///
|
||||
/// Numerical runtime error
|
||||
///
|
||||
template <typename _Tn>
|
||||
class num_runtime_error : public std::runtime_error
|
||||
{
|
||||
public:
|
||||
typedef _Tn error_type; ///< Error number type
|
||||
|
||||
public:
|
||||
///
|
||||
/// Constructs an exception
|
||||
///
|
||||
/// \param[in] num Numeric error code
|
||||
/// \param[in] msg Error message
|
||||
///
|
||||
num_runtime_error(_In_ error_type num, _In_ const std::string& msg) :
|
||||
m_num(num),
|
||||
runtime_error(msg)
|
||||
{}
|
||||
public:
|
||||
///
|
||||
/// Constructs an exception
|
||||
///
|
||||
/// \param[in] num Numeric error code
|
||||
/// \param[in] msg Error message
|
||||
///
|
||||
num_runtime_error(_In_ error_type num, _In_ const std::string& msg) :
|
||||
m_num(num),
|
||||
runtime_error(msg)
|
||||
{}
|
||||
|
||||
///
|
||||
/// Constructs an exception
|
||||
///
|
||||
/// \param[in] num Numeric error code
|
||||
/// \param[in] msg Error message
|
||||
///
|
||||
num_runtime_error(_In_ error_type num, _In_z_ const char *msg) :
|
||||
m_num(num),
|
||||
runtime_error(msg)
|
||||
{}
|
||||
///
|
||||
/// Constructs an exception
|
||||
///
|
||||
/// \param[in] num Numeric error code
|
||||
/// \param[in] msg Error message
|
||||
///
|
||||
num_runtime_error(_In_ error_type num, _In_z_ const char *msg) :
|
||||
m_num(num),
|
||||
runtime_error(msg)
|
||||
{}
|
||||
|
||||
///
|
||||
/// Returns the error number
|
||||
///
|
||||
error_type number() const
|
||||
{
|
||||
return m_num;
|
||||
}
|
||||
///
|
||||
/// Returns the error number
|
||||
///
|
||||
error_type number() const
|
||||
{
|
||||
return m_num;
|
||||
}
|
||||
|
||||
protected:
|
||||
error_type m_num; ///< Numeric error code
|
||||
};
|
||||
protected:
|
||||
error_type m_num; ///< Numeric error code
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user