Merge pull request #14213 from ahmadshabib/fix-typos-in-mapper

typo: fix the typo in mapping exception
This commit is contained in:
Lukas Eder 2022-11-14 16:56:06 +01:00 committed by GitHub
commit eea0e61911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -833,7 +833,7 @@ abstract class AbstractRecord extends AbstractStore implements Record {
// All other reflection exceptions are intercepted
catch (Exception e) {
throw new MappingException("An error ocurred when mapping record to " + type, e);
throw new MappingException("An error occurred when mapping record to " + type, e);
}
}
@ -894,7 +894,7 @@ abstract class AbstractRecord extends AbstractStore implements Record {
// All reflection exceptions are intercepted
catch (Exception e) {
throw new MappingException("An error ocurred when mapping record to " + target, e);
throw new MappingException("An error occurred when mapping record to " + target, e);
}
}
}

View File

@ -627,7 +627,7 @@ public class DefaultRecordMapper<R extends Record, E> implements RecordMapper<R,
// All other reflection exceptions are intercepted
catch (Exception e) {
throw new MappingException("An error ocurred when mapping record to " + type, e);
throw new MappingException("An error occurred when mapping record to " + type, e);
}
}
@ -759,7 +759,7 @@ public class DefaultRecordMapper<R extends Record, E> implements RecordMapper<R,
throw new MappingException("Cannot map record " + record + " to type " + type);
}
catch (Exception e) {
throw new MappingException("An error ocurred when mapping record to " + type, e);
throw new MappingException("An error occurred when mapping record to " + type, e);
}
}
}
@ -923,7 +923,7 @@ public class DefaultRecordMapper<R extends Record, E> implements RecordMapper<R,
return result;
}
catch (Exception e) {
throw new MappingException("An error ocurred when mapping record to " + type, e);
throw new MappingException("An error occurred when mapping record to " + type, e);
}
}
@ -1134,7 +1134,7 @@ public class DefaultRecordMapper<R extends Record, E> implements RecordMapper<R,
return constructor.newInstance(nested ? mapNested(record) : mapNonnested(record));
}
catch (Exception e) {
throw new MappingException("An error ocurred when mapping record to " + type, e);
throw new MappingException("An error occurred when mapping record to " + type, e);
}
}

View File

@ -240,7 +240,7 @@ public class DefaultRecordUnmapper<E, R extends Record> implements RecordUnmappe
// All reflection exceptions are intercepted
catch (Exception e) {
throw new MappingException("An error ocurred when mapping record from " + type, e);
throw new MappingException("An error occurred when mapping record from " + type, e);
}
}
}