2012-07-18 03:36:08 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The format for each error message is:
|
|
|
|
*
|
|
|
|
* MSG_DEF(<SYMBOLIC_NAME>, <ARGUMENT_COUNT>, <FORMAT_STRING>)
|
|
|
|
*
|
|
|
|
* where
|
|
|
|
*
|
|
|
|
* <SYMBOLIC_NAME> is a legal C++ identifer that will be used in the source.
|
|
|
|
*
|
|
|
|
* <ARGUMENT_COUNT> is an integer literal specifying the total number of
|
|
|
|
* replaceable arguments in the following format string.
|
|
|
|
*
|
|
|
|
* <FORMAT_STRING> is a string literal, containing <ARGUMENT_COUNT> sequences
|
|
|
|
* {X} where X is an integer representing the argument number that will
|
|
|
|
* be replaced with a string value when the error is reported.
|
|
|
|
*/
|
|
|
|
|
2012-07-25 19:31:26 -07:00
|
|
|
MSG_DEF(MSG_INVALID_ENUM_VALUE, 2, "Value '{0}' is not a valid value for enumeration {1}.")
|
2012-07-18 03:36:08 -07:00
|
|
|
MSG_DEF(MSG_MISSING_ARGUMENTS, 1, "Not enough arguments to {0}.")
|
2013-05-17 21:14:18 -07:00
|
|
|
MSG_DEF(MSG_NOT_OBJECT, 0, "Value is not an object.")
|
2012-10-10 12:53:02 -07:00
|
|
|
MSG_DEF(MSG_NOT_CALLABLE, 0, "Value is not callable.")
|
2012-07-25 19:31:26 -07:00
|
|
|
MSG_DEF(MSG_DOES_NOT_IMPLEMENT_INTERFACE, 1, "Value does not implement interface {0}.")
|
|
|
|
MSG_DEF(MSG_NOT_IN_UNION, 1, "Value could not be converted to any of: {0}.")
|
2012-08-04 00:44:00 -07:00
|
|
|
MSG_DEF(MSG_ILLEGAL_CONSTRUCTOR, 0, "Illegal constructor.")
|
2012-09-06 00:25:03 -07:00
|
|
|
MSG_DEF(MSG_NO_PROPERTY_SETTER, 1, "{0} doesn't have an indexed property setter.")
|
|
|
|
MSG_DEF(MSG_ENFORCE_RANGE_NON_FINITE, 1, "Non-finite value is out of range for {0}.")
|
|
|
|
MSG_DEF(MSG_ENFORCE_RANGE_OUT_OF_RANGE, 1, "Value is out of range for {0}.")
|
2013-05-17 21:14:18 -07:00
|
|
|
MSG_DEF(MSG_NOT_SEQUENCE, 0, "Value can not be converted to a sequence.")
|
|
|
|
MSG_DEF(MSG_NOT_DICTIONARY, 0, "Value can not be converted to a dictionary.")
|
|
|
|
MSG_DEF(MSG_INVALID_ARG, 2, "Argument {0} is not valid for any of the {1}-argument overloads.")
|
|
|
|
MSG_DEF(MSG_GLOBAL_NOT_NATIVE, 0, "Global is not a native object.")
|
2012-11-06 15:23:14 -08:00
|
|
|
MSG_DEF(MSG_ENCODING_NOT_SUPPORTED, 1, "The given encoding '{0}' is not supported.")
|
|
|
|
MSG_DEF(MSG_DOM_ENCODING_NOT_UTF, 0, "The encoding must be utf-8, utf-16, or utf-16be.")
|
2012-11-27 12:32:05 -08:00
|
|
|
MSG_DEF(MSG_NOT_FINITE, 0, "Floating-point value is not finite.")
|
2013-03-31 01:18:30 -07:00
|
|
|
MSG_DEF(MSG_INVALID_VERSION, 0, "0 (Zero) is not a valid database version.")
|
2013-06-12 22:18:35 -07:00
|
|
|
MSG_DEF(MSG_INVALID_BYTESTRING, 2, "Cannot convert string to ByteString because the character"
|
|
|
|
" at index {0} has value {1} which is greater than 255.")
|
2013-05-02 11:38:20 -07:00
|
|
|
MSG_DEF(MSG_NOT_DATE, 0, "Value is not a date.")
|