Contracts.with_error_prefix()
Adds a filter to get contracts that have an error whose name has the given prefix.
with_error_prefix(prefix: str, sensitivity: bool = True) ->
Contracts
Example Query
from glider import *
def query():
contracts = Contracts().with_error_prefix("Wrong").exec(1)
errors = contracts[0].errors().exec()
for error in errors:
print(error.signature)
return contracts
Output Example

Last updated