#include "third_party/blink/renderer/platform/bindings/exception_messages.h"
#include "base/notreached.h"
#include "third_party/blink/renderer/platform/bindings/exception_context.h"
#include "third_party/blink/renderer/platform/bindings/v8_binding.h"
#include "third_party/blink/renderer/platform/wtf/decimal.h"
#include "third_party/blink/renderer/platform/wtf/math_extras.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
namespace blink {
namespace {
String optionalNameProperty(const String& property) { … }
String optionalIndexProperty(const String& property) { … }
}
String ExceptionMessages::AddContextToMessage(const ExceptionContext& context,
const String& message) { … }
String ExceptionMessages::FailedToConvertJSValue(const char* type) { … }
String ExceptionMessages::FailedToConstruct(const char* type,
const String& detail) { … }
String ExceptionMessages::FailedToEnumerate(const char* type,
const String& detail) { … }
String ExceptionMessages::FailedToExecute(const String& method,
const char* type,
const String& detail) { … }
String ExceptionMessages::FailedToGet(const String& property,
const char* type,
const String& detail) { … }
String ExceptionMessages::FailedToSet(const String& property,
const char* type,
const String& detail) { … }
String ExceptionMessages::FailedToDelete(const String& property,
const char* type,
const String& detail) { … }
String ExceptionMessages::FailedToGetIndexed(const String& property,
const char* type,
const String& detail) { … }
String ExceptionMessages::FailedToSetIndexed(const String& property,
const char* type,
const String& detail) { … }
String ExceptionMessages::FailedToDeleteIndexed(const String& property,
const char* type,
const String& detail) { … }
String ExceptionMessages::FailedToGetNamed(const String& property,
const char* type,
const String& detail) { … }
String ExceptionMessages::FailedToSetNamed(const String& property,
const char* type,
const String& detail) { … }
String ExceptionMessages::FailedToDeleteNamed(const String& property,
const char* type,
const String& detail) { … }
String ExceptionMessages::ConstructorNotCallableAsFunction(const char* type) { … }
String ExceptionMessages::ConstructorCalledAsFunction() { … }
String ExceptionMessages::IncorrectPropertyType(const String& property,
const String& detail) { … }
String ExceptionMessages::InvalidArity(const char* expected,
unsigned provided) { … }
String ExceptionMessages::ArgumentNullOrIncorrectType(
int argument_index,
const String& expected_type) { … }
String ExceptionMessages::ArgumentNotOfType(int argument_index,
const char* expected_type) { … }
String ExceptionMessages::NotASequenceTypeProperty(
const String& property_name) { … }
String ExceptionMessages::NotEnoughArguments(unsigned expected,
unsigned provided) { … }
String ExceptionMessages::NotAFiniteNumber(double value, const char* name) { … }
String ExceptionMessages::NotAFiniteNumber(const Decimal& value,
const char* name) { … }
String ExceptionMessages::OrdinalNumber(int number) { … }
String ExceptionMessages::IndexExceedsMaximumBound(const char* name,
bool eq,
const String& given,
const String& bound) { … }
String ExceptionMessages::IndexExceedsMinimumBound(const char* name,
bool eq,
const String& given,
const String& bound) { … }
String ExceptionMessages::IndexOutsideRange(const char* name,
const String& given,
const String& lower_bound,
BoundType lower_type,
const String& upper_bound,
BoundType upper_type) { … }
String ExceptionMessages::ReadOnly(const char* detail) { … }
String ExceptionMessages::SharedArrayBufferNotAllowed(
const char* expected_type) { … }
String ExceptionMessages::ResizableArrayBufferNotAllowed(
const char* expected_type) { … }
String ExceptionMessages::ValueNotOfType(const char* expected_type) { … }
template <>
String ExceptionMessages::FormatNumber<float>(float number) { … }
template <>
String ExceptionMessages::FormatNumber<double>(double number) { … }
}