Echo Writes Code

errors.cpp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "crucible/core/errors.hpp"

namespace crucible
{

#if CRUCIBLE_PLATFORM_HAS_CXA_DEMANGLE
  auto insufficient_demangle_memory::describe() const -> string
	{
		return "insufficient memory to demangle symbol";
	}

  auto invalid_demangle_arguments::describe() const -> string
	{
		return "::abi::__cxa_demangle() invoked with invalid arguments";
	}

  auto unknown_demangle_error::describe() const -> string
	{
		return "::abi::__cxa_demangle() returned an unrecognized error code";
	}
#endif // CRUCIBLE_PLATFORM_HAS_CXA_DEMANGLE

}