An integer is valid if it's not negative or empty and is an integer
(either int or long). The exception type raised can be specified
with the exception argument; it defaults to BadValueError.
Args
value
The value to validate.
name
The name of this value; used in the exception message.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-09-30 UTC."],[[["This function, `ValidateInteger`, checks if a given value is a valid integer, raising an exception if it's not."],["The function allows customization of the exception type to be raised when an invalid integer is found, defaulting to `BadValueError`."],["It checks the input `value` against criteria such as being empty, zero, or negative, based on the `empty_ok`, `zero_ok`, and `negative_ok` arguments respectively."],["The `name` argument allows you to specify the name of the value for more informative exception messages."],["The `ValidateInteger` function is aliased as `google.appengine.api.datastore.datastore_types.ValidateInteger`."]]],[]]