@@ -20,7 +20,7 @@ def card_number(value: str, /):
2020 >>> card_number('4242424242424242')
2121 # Output: True
2222 >>> card_number('4242424242424241')
23- # Output: ValidationFailure (func=card_number, args={'value': '4242424242424241'})
23+ # Output: ValidationError (func=card_number, args={'value': '4242424242424241'})
2424
2525 Args:
2626 value:
@@ -29,7 +29,7 @@ def card_number(value: str, /):
2929 Returns:
3030 (Literal[True]):
3131 If `value` is a valid generic card number.
32- (ValidationFailure ):
32+ (ValidationError ):
3333 If `value` is an invalid generic card number.
3434
3535 > *New in version 0.15.0*.
@@ -53,7 +53,7 @@ def visa(value: str, /):
5353 >>> visa('4242424242424242')
5454 # Output: True
5555 >>> visa('2223003122003222')
56- # Output: ValidationFailure (func=visa, args={'value': '2223003122003222'})
56+ # Output: ValidationError (func=visa, args={'value': '2223003122003222'})
5757
5858 Args:
5959 value:
@@ -62,7 +62,7 @@ def visa(value: str, /):
6262 Returns:
6363 (Literal[True]):
6464 If `value` is a valid Visa card number.
65- (ValidationFailure ):
65+ (ValidationError ):
6666 If `value` is an invalid Visa card number.
6767
6868 > *New in version 0.15.0*.
@@ -79,7 +79,7 @@ def mastercard(value: str, /):
7979 >>> mastercard('5555555555554444')
8080 # Output: True
8181 >>> mastercard('4242424242424242')
82- # Output: ValidationFailure (func=mastercard, args={'value': '4242424242424242'})
82+ # Output: ValidationError (func=mastercard, args={'value': '4242424242424242'})
8383
8484 Args:
8585 value:
@@ -88,7 +88,7 @@ def mastercard(value: str, /):
8888 Returns:
8989 (Literal[True]):
9090 If `value` is a valid Mastercard card number.
91- (ValidationFailure ):
91+ (ValidationError ):
9292 If `value` is an invalid Mastercard card number.
9393
9494 > *New in version 0.15.0*.
@@ -105,7 +105,7 @@ def amex(value: str, /):
105105 >>> amex('378282246310005')
106106 # Output: True
107107 >>> amex('4242424242424242')
108- # Output: ValidationFailure (func=amex, args={'value': '4242424242424242'})
108+ # Output: ValidationError (func=amex, args={'value': '4242424242424242'})
109109
110110 Args:
111111 value:
@@ -114,7 +114,7 @@ def amex(value: str, /):
114114 Returns:
115115 (Literal[True]):
116116 If `value` is a valid American Express card number.
117- (ValidationFailure ):
117+ (ValidationError ):
118118 If `value` is an invalid American Express card number.
119119
120120 > *New in version 0.15.0*.
@@ -131,7 +131,7 @@ def unionpay(value: str, /):
131131 >>> unionpay('6200000000000005')
132132 # Output: True
133133 >>> unionpay('4242424242424242')
134- # Output: ValidationFailure (func=unionpay, args={'value': '4242424242424242'})
134+ # Output: ValidationError (func=unionpay, args={'value': '4242424242424242'})
135135
136136 Args:
137137 value:
@@ -140,7 +140,7 @@ def unionpay(value: str, /):
140140 Returns:
141141 (Literal[True]):
142142 If `value` is a valid UnionPay card number.
143- (ValidationFailure ):
143+ (ValidationError ):
144144 If `value` is an invalid UnionPay card number.
145145
146146 > *New in version 0.15.0*.
@@ -157,7 +157,7 @@ def diners(value: str, /):
157157 >>> diners('3056930009020004')
158158 # Output: True
159159 >>> diners('4242424242424242')
160- # Output: ValidationFailure (func=diners, args={'value': '4242424242424242'})
160+ # Output: ValidationError (func=diners, args={'value': '4242424242424242'})
161161
162162 Args:
163163 value:
@@ -166,7 +166,7 @@ def diners(value: str, /):
166166 Returns:
167167 (Literal[True]):
168168 If `value` is a valid Diners Club card number.
169- (ValidationFailure ):
169+ (ValidationError ):
170170 If `value` is an invalid Diners Club card number.
171171
172172 > *New in version 0.15.0*.
@@ -183,7 +183,7 @@ def jcb(value: str, /):
183183 >>> jcb('3566002020360505')
184184 # Output: True
185185 >>> jcb('4242424242424242')
186- # Output: ValidationFailure (func=jcb, args={'value': '4242424242424242'})
186+ # Output: ValidationError (func=jcb, args={'value': '4242424242424242'})
187187
188188 Args:
189189 value:
@@ -192,7 +192,7 @@ def jcb(value: str, /):
192192 Returns:
193193 (Literal[True]):
194194 If `value` is a valid JCB card number.
195- (ValidationFailure ):
195+ (ValidationError ):
196196 If `value` is an invalid JCB card number.
197197
198198 > *New in version 0.15.0*.
@@ -209,7 +209,7 @@ def discover(value: str, /):
209209 >>> discover('6011111111111117')
210210 # Output: True
211211 >>> discover('4242424242424242')
212- # Output: ValidationFailure (func=discover, args={'value': '4242424242424242'})
212+ # Output: ValidationError (func=discover, args={'value': '4242424242424242'})
213213
214214 Args:
215215 value:
@@ -218,7 +218,7 @@ def discover(value: str, /):
218218 Returns:
219219 (Literal[True]):
220220 If `value` is a valid Discover card number.
221- (ValidationFailure ):
221+ (ValidationError ):
222222 If `value` is an invalid Discover card number.
223223
224224 > *New in version 0.15.0*.
0 commit comments