You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<atarget="_blank"href="https://github.com/sponsors/MasoniteFramework">❤️ Find this page useful? Support Masonite so we can continue to build great free tools like this one!</a>
Copy file name to clipboardExpand all lines: src/exceptionite/solutions.py
+25-1Lines changed: 25 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,31 @@ def description(self):
23
23
)
24
24
25
25
defregex(self):
26
-
returnr"^class \'(?P<class>([\w]*))\' has no attribute (?P<method>(\w+))"
26
+
returnr"^class \'(?P<class>([\w]*))\' has no attribute (?P<method>(\w+))"
27
+
classClassModelMethodExists:
28
+
deftitle(self):
29
+
return"Model method does not exist"
30
+
31
+
defdescription(self):
32
+
return (
33
+
"Could not find the ':method' method on the model class. Please check spelling. If this is a method you expect to be on the builder class then check the ORM documentation"
34
+
)
35
+
36
+
defregex(self):
37
+
returnr"^class model \'(?P<class>([\w]*))\' has no attribute (?P<method>(\w+))"
38
+
39
+
classQueryDefaultValue:
40
+
deftitle(self):
41
+
return"Missing default value for ':field'"
42
+
43
+
defdescription(self):
44
+
return (
45
+
"Default values are typically set on the database level. "
46
+
"You can either add a default value on the :field table column in a migration or you should pass a value when creating this record"
47
+
)
48
+
49
+
defregex(self):
50
+
returnr"\(1364\, \"Field \'(?P<field>([\w]*))\' doesn't have a default value\"\)"
0 commit comments