Error

Despite of the so strong name it expresses parsed object.

So this type is created for API error responses parsing.

class freedictionaryapi.types.error.Error(data: dict)[source]

Bases: freedictionaryapi.types.base.ParsedObject

Implements the object of API JSON response that consists of error data:

  • title - short error title;

  • message - more detailed error message;

  • resolution - offer to solve problem.

property message: str
Returns

error message

Return type

str

property resolution: str
Returns

error resolution

Return type

str

property title: str
Returns

error title

Return type

str