PydanticError class

Modelo para parsear errores de validación de Pydantic

Constructors

PydanticError({required String type, required List loc, required String msg, required dynamic input, Map<String, dynamic>? ctx, String? url})
const
PydanticError.fromJson(Map<String, dynamic> json)
factory

Properties

ctx Map<String, dynamic>?
final
eventIndex int?
Obtiene el índice del evento en el array si el error es sobre un evento específico Los errores de Pydantic tienen formato: "body", index, "field"
no setter
hashCode int
The hash code for this object.
no setterinherited
input → dynamic
final
isEventSpecificError bool
Verifica si es un error crítico que afecta a un evento específico
no setter
loc List
final
msg String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
final
url String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited