Skip to content

Commit 48807e8

Browse files
committed
Changed texts for exceptions [ci skip]
1 parent 9d07e69 commit 48807e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/apache/ibatis/mapping/ResultMapping.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ public ResultMapping build() {
140140
private void validate() {
141141
// Issue #697: cannot define both nestedQueryId and nestedResultMapId
142142
if (resultMapping.nestedQueryId != null && resultMapping.nestedResultMapId != null) {
143-
throw new IllegalStateException("Cannot define both nestedQueryId and nestedResultMapId in mapping " + resultMapping.property);
143+
throw new IllegalStateException("Cannot define both nestedQueryId and nestedResultMapId in property " + resultMapping.property);
144144
}
145145
// Issue #5: there should be no mappings without typehandler
146146
if (resultMapping.nestedQueryId == null && resultMapping.nestedResultMapId == null && resultMapping.typeHandler == null) {
147-
throw new IllegalStateException("No typehandler found for mapping " + resultMapping.property);
147+
throw new IllegalStateException("No typehandler found for property " + resultMapping.property);
148148
}
149149
// Issue #4 and GH #39: column is optional only in nested resultmaps but not in the rest
150150
if (resultMapping.nestedResultMapId == null && resultMapping.column == null && resultMapping.composites.size() == 0) {
151-
throw new IllegalStateException("Missing column attribute for mapping " + resultMapping.property);
151+
throw new IllegalStateException("Mapping is missing column attribute for property " + resultMapping.property);
152152
}
153153
if (resultMapping.getResultSet() != null) {
154154
int numColums = 0;

0 commit comments

Comments
 (0)