typo: fix the typo in mapping exception

This commit is contained in:
Ahmad Shabib 2022-11-14 17:41:47 +03:00
parent ed34cd7516
commit a6994a628f
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);
}
}
}