dom/bindings/Errors.msg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/bindings/Errors.msg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +/*
     1.9 + * The format for each error message is:
    1.10 + *
    1.11 + * MSG_DEF(<SYMBOLIC_NAME>, <ARGUMENT_COUNT>, <FORMAT_STRING>)
    1.12 + *
    1.13 + * where
    1.14 + *
    1.15 + * <SYMBOLIC_NAME> is a legal C++ identifer that will be used in the source.
    1.16 + *
    1.17 + * <ARGUMENT_COUNT> is an integer literal specifying the total number of
    1.18 + * replaceable arguments in the following format string.
    1.19 + *
    1.20 + * <FORMAT_STRING> is a string literal, containing <ARGUMENT_COUNT> sequences
    1.21 + * {X} where X  is an integer representing the argument number that will
    1.22 + * be replaced with a string value when the error is reported.
    1.23 + */
    1.24 +
    1.25 +MSG_DEF(MSG_INVALID_ENUM_VALUE, 3, "{0} '{1}' is not a valid value for enumeration {2}.")
    1.26 +MSG_DEF(MSG_MISSING_ARGUMENTS, 1, "Not enough arguments to {0}.")
    1.27 +MSG_DEF(MSG_NOT_OBJECT, 1, "{0} is not an object.")
    1.28 +MSG_DEF(MSG_NOT_CALLABLE, 1, "{0} is not callable.")
    1.29 +MSG_DEF(MSG_DOES_NOT_IMPLEMENT_INTERFACE, 2, "{0} does not implement interface {1}.")
    1.30 +MSG_DEF(MSG_METHOD_THIS_DOES_NOT_IMPLEMENT_INTERFACE, 2, "'{0}' called on an object that does not implement interface {1}.")
    1.31 +MSG_DEF(MSG_METHOD_THIS_UNWRAPPING_DENIED, 1, "Permission to call '{0}' denied.")
    1.32 +MSG_DEF(MSG_GETTER_THIS_DOES_NOT_IMPLEMENT_INTERFACE, 2, "'{0}' getter called on an object that does not implement interface {1}.")
    1.33 +MSG_DEF(MSG_GETTER_THIS_UNWRAPPING_DENIED, 1, "Permission to call '{0}' getter denied.")
    1.34 +MSG_DEF(MSG_SETTER_THIS_DOES_NOT_IMPLEMENT_INTERFACE, 2, "'{0}' setter called on an object that does not implement interface {1}.")
    1.35 +MSG_DEF(MSG_SETTER_THIS_UNWRAPPING_DENIED, 1, "Permission to call '{0}' setter denied.")
    1.36 +MSG_DEF(MSG_THIS_DOES_NOT_IMPLEMENT_INTERFACE, 1, "\"this\" object does not implement interface {0}.")
    1.37 +MSG_DEF(MSG_NOT_IN_UNION, 2, "{0} could not be converted to any of: {1}.")
    1.38 +MSG_DEF(MSG_ILLEGAL_CONSTRUCTOR, 0, "Illegal constructor.")
    1.39 +MSG_DEF(MSG_CONSTRUCTOR_WITHOUT_NEW, 1, "Constructor {0} requires 'new'")
    1.40 +MSG_DEF(MSG_NO_INDEXED_SETTER, 1, "{0} doesn't have an indexed property setter.")
    1.41 +MSG_DEF(MSG_NO_NAMED_SETTER, 1, "{0} doesn't have a named property setter.")
    1.42 +MSG_DEF(MSG_ENFORCE_RANGE_NON_FINITE, 1, "Non-finite value is out of range for {0}.")
    1.43 +MSG_DEF(MSG_ENFORCE_RANGE_OUT_OF_RANGE, 1, "Value is out of range for {0}.")
    1.44 +MSG_DEF(MSG_NOT_SEQUENCE, 1, "{0} can't be converted to a sequence.")
    1.45 +MSG_DEF(MSG_NOT_DICTIONARY, 1, "{0} can't be converted to a dictionary.")
    1.46 +MSG_DEF(MSG_OVERLOAD_RESOLUTION_FAILED, 3, "Argument {0} is not valid for any of the {1}-argument overloads of {2}.")
    1.47 +MSG_DEF(MSG_GLOBAL_NOT_NATIVE, 0, "Global is not a native object.")
    1.48 +MSG_DEF(MSG_ENCODING_NOT_SUPPORTED, 1, "The given encoding '{0}' is not supported.")
    1.49 +MSG_DEF(MSG_DOM_ENCODING_NOT_UTF, 0, "The encoding must be utf-8, utf-16, or utf-16be.")
    1.50 +MSG_DEF(MSG_NOT_FINITE, 1, "{0} is not a finite floating-point value.")
    1.51 +MSG_DEF(MSG_INVALID_VERSION, 0, "0 (Zero) is not a valid database version.")
    1.52 +MSG_DEF(MSG_INVALID_BYTESTRING, 2, "Cannot convert string to ByteString because the character"
    1.53 +        " at index {0} has value {1} which is greater than 255.")
    1.54 +MSG_DEF(MSG_NOT_DATE, 1, "{0} is not a date.")
    1.55 +MSG_DEF(MSG_INVALID_ADVANCE_COUNT, 0, "0 (Zero) is not a valid advance count.")
    1.56 +MSG_DEF(MSG_DEFINEPROPERTY_ON_GSP, 0, "Not allowed to define a property on the named properties object.")
    1.57 +MSG_DEF(MSG_INVALID_URL, 1, "{0} is not a valid URL.")
    1.58 +MSG_DEF(MSG_METADATA_NOT_CONFIGURED, 0, "Either size or lastModified should be true.")
    1.59 +MSG_DEF(MSG_INVALID_READ_SIZE, 0, "0 (Zero) is not a valid read size.")

mercurial