Skip to content

Commit 1fb179b

Browse files
committed
Relax scope of DataIntegrityViolationException
This commit updates the Javadoc of DataIntegrityViolationException to broaden its scope as it was too specific before. Closes gh-32686
1 parent 5c9f364 commit 1fb179b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: spring-tx/src/main/java/org/springframework/dao/DataIntegrityViolationException.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,7 +17,8 @@
1717
package org.springframework.dao;
1818

1919
/**
20-
* Exception thrown when an attempt to insert or update data
20+
* Exception thrown when an attempt to execute an SQL statement fails to map
21+
* the given data, typically but no limited to an insert or update data
2122
* results in violation of an integrity constraint. Note that this
2223
* is not purely a relational concept; integrity constraints such
2324
* as unique primary keys are required by most database types.

0 commit comments

Comments
 (0)