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
|
/// Numerical runtime error
|
||||||
///
|
///
|
||||||
template <typename _Tn>
|
template <typename _Tn>
|
||||||
class num_runtime_error : public std::runtime_error
|
class num_runtime_error : public std::runtime_error
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef _Tn error_type; ///< Error number type
|
typedef _Tn error_type; ///< Error number type
|
||||||
|
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
/// Constructs an exception
|
/// Constructs an exception
|
||||||
///
|
///
|
||||||
/// \param[in] num Numeric error code
|
/// \param[in] num Numeric error code
|
||||||
/// \param[in] msg Error message
|
/// \param[in] msg Error message
|
||||||
///
|
///
|
||||||
num_runtime_error(_In_ error_type num, _In_ const std::string& msg) :
|
num_runtime_error(_In_ error_type num, _In_ const std::string& msg) :
|
||||||
m_num(num),
|
m_num(num),
|
||||||
runtime_error(msg)
|
runtime_error(msg)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Constructs an exception
|
/// Constructs an exception
|
||||||
///
|
///
|
||||||
/// \param[in] num Numeric error code
|
/// \param[in] num Numeric error code
|
||||||
/// \param[in] msg Error message
|
/// \param[in] msg Error message
|
||||||
///
|
///
|
||||||
num_runtime_error(_In_ error_type num, _In_z_ const char *msg) :
|
num_runtime_error(_In_ error_type num, _In_z_ const char *msg) :
|
||||||
m_num(num),
|
m_num(num),
|
||||||
runtime_error(msg)
|
runtime_error(msg)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Returns the error number
|
/// Returns the error number
|
||||||
///
|
///
|
||||||
error_type number() const
|
error_type number() const
|
||||||
{
|
{
|
||||||
return m_num;
|
return m_num;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
error_type m_num; ///< Numeric error code
|
error_type m_num; ///< Numeric error code
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user