Skip to content

flywheel.models.search_parse_error

SearchParseError

Bases: object

line property writable

Gets the line of this SearchParseError.

The line number where the error occurred

Returns:

Type Description
int

The line of this SearchParseError

message property writable

Gets the message of this SearchParseError.

The error message

Returns:

Type Description
str

The message of this SearchParseError

offset property writable

Gets the offset of this SearchParseError.

The absolute offset in the input (from 0) where the error occurred

Returns:

Type Description
int

The offset of this SearchParseError

pos property writable

Gets the pos of this SearchParseError.

The position where the error occurred

Returns:

Type Description
int

The pos of this SearchParseError

__contains__(key)

Checks if the given value is a key in this object

__eq__(other)

Returns true if both objects are equal

__getitem__(key)

Returns the value of key

__init__(line=None, pos=None, offset=None, message=None)

SearchParseError - a model defined in Swagger

Parameters:

Name Type Description Default
line (int, optional)

The line number where the error occurred, defaults to None

None
pos (int, optional)

The position where the error occurred, defaults to None

None
offset (int, optional)

The absolute offset in the input (from 0) where the error occurred, defaults to None

None
message (str, optional)

The error message, defaults to None

None

__ne__(other)

Returns true if both objects are not equal

__repr__()

For print and pprint

__setitem__(key, value)

Sets the value of key

get(key, default=None)

Get the value of the provided json property, or default

items()

Returns the list of json property to value mapping

keys()

Returns the list of json properties in the object

positional_to_model(value) staticmethod

Converts a positional argument to a model value

return_value()

Unwraps return value from model

to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

values()

Returns the list of values in the object