Skip to content

Commit 18bcb72

Browse files
committed
[JAVA-12620] Split core-java-exceptions module
1 parent e31a4df commit 18bcb72

8 files changed

Lines changed: 30 additions & 18 deletions

File tree

core-java-modules/core-java-exceptions-2/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ This module contains articles about core java exceptions
1414
- [How to Find an Exception’s Root Cause in Java](https://www.baeldung.com/java-exception-root-cause)
1515
- [Java IOException “Too many open files”](https://www.baeldung.com/java-too-many-open-files)
1616
- [When Does Java Throw the ExceptionInInitializerError?](https://www.baeldung.com/java-exceptionininitializererror)
17+
- More articles: [[<-- prev]](../core-java-exceptions-1) [[next -->]](../core-java-exceptions-3)
18+

core-java-modules/core-java-exceptions-3/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
### Relevant Articles:
1+
## Core Java Exceptions
2+
3+
This module contains articles about core java exceptions
24

5+
### Relevant Articles:
36
- [NoSuchMethodError in Java](https://www.baeldung.com/java-nosuchmethod-error)
47
- [IllegalArgumentException or NullPointerException for a Null Parameter?](https://www.baeldung.com/java-illegalargumentexception-or-nullpointerexception)
58
- [IllegalMonitorStateException in Java](https://www.baeldung.com/java-illegalmonitorstateexception)
@@ -10,3 +13,5 @@
1013
- [NoSuchFieldError in Java](https://www.baeldung.com/java-nosuchfielderror)
1114
- [IllegalAccessError in Java](https://www.baeldung.com/java-illegalaccesserror)
1215
- [Working with (Unknown Source) Stack Traces in Java](https://www.baeldung.com/java-unknown-source-stack-trace)
16+
- More articles: [[<-- prev]](../core-java-exceptions-2) [[next -->]](../core-java-exceptions-4)
17+
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
### Relevant Articles:
1+
## Core Java Exceptions
22

3+
This module contains articles about core java exceptions
4+
5+
### Relevant articles:
36
- [Java ArrayIndexOutOfBoundsException](https://www.baeldung.com/java-arrayindexoutofboundsexception)
47
- [Java Missing Return Statement](https://www.baeldung.com/java-missing-return-statement)
58
- [Convert long to int Type in Java](https://www.baeldung.com/java-convert-long-to-int)
9+
- [“Sneaky Throws” in Java](https://www.baeldung.com/java-sneaky-throws)
10+
- [[<-- Prev]](../core-java-exceptions-3)

core-java-modules/core-java-exceptions-4/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
<version>${h2.version}</version>
2323
<scope>test</scope>
2424
</dependency>
25+
<dependency>
26+
<groupId>org.projectlombok</groupId>
27+
<artifactId>lombok</artifactId>
28+
<version>${lombok.version}</version>
29+
<scope>provided</scope>
30+
</dependency>
2531
</dependencies>
2632

2733
<build>

core-java-modules/core-java-exceptions/src/main/java/com/baeldung/exceptions/sneakythrows/SneakyThrowsExamples.java renamed to core-java-modules/core-java-exceptions-4/src/main/java/com/baeldung/exception/sneakythrows/SneakyThrowsExamples.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package com.baeldung.exceptions.sneakythrows;
2-
3-
import java.io.IOException;
1+
package com.baeldung.exception.sneakythrows;
42

53
import lombok.SneakyThrows;
64

5+
import java.io.IOException;
6+
77
public class SneakyThrowsExamples {
88

99
public static <E extends Throwable> void sneakyThrow(Throwable e) throws E {

core-java-modules/core-java-exceptions/src/test/java/com/baeldung/exceptions/sneakythrows/SneakyThrowsExamplesUnitTest.java renamed to core-java-modules/core-java-exceptions-4/src/test/java/com/baeldung/exception/sneakythrows/SneakyThrowsExamplesUnitTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package com.baeldung.exceptions.sneakythrows;
1+
package com.baeldung.exception.sneakythrows;
22

3-
import static com.baeldung.exceptions.sneakythrows.SneakyThrowsExamples.throwSneakyIOException;
4-
import static com.baeldung.exceptions.sneakythrows.SneakyThrowsExamples.throwSneakyIOExceptionUsingLombok;
5-
import static org.assertj.core.api.Assertions.assertThatThrownBy;
3+
import org.junit.Test;
64

75
import java.io.IOException;
86

9-
import org.junit.Test;
7+
import static com.baeldung.exception.sneakythrows.SneakyThrowsExamples.throwSneakyIOException;
8+
import static com.baeldung.exception.sneakythrows.SneakyThrowsExamples.throwSneakyIOExceptionUsingLombok;
9+
import static org.assertj.core.api.Assertions.assertThatThrownBy;
1010

1111
public class SneakyThrowsExamplesUnitTest {
1212

core-java-modules/core-java-exceptions/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ This module contains articles about core java exceptions
99
- [Exception Handling in Java](https://www.baeldung.com/java-exceptions)
1010
- [Differences Between Final, Finally and Finalize in Java](https://www.baeldung.com/java-final-finally-finalize)
1111
- [Difference Between Throw and Throws in Java](https://www.baeldung.com/java-throw-throws)
12-
- [“Sneaky Throws” in Java](https://www.baeldung.com/java-sneaky-throws)
1312
- [The StackOverflowError in Java](https://www.baeldung.com/java-stack-overflow-error)
1413
- [Checked and Unchecked Exceptions in Java](https://www.baeldung.com/java-checked-unchecked-exceptions)
1514
- [Common Java Exceptions](https://www.baeldung.com/java-common-exceptions)
1615
- [Will an Error Be Caught by Catch Block in Java?](https://www.baeldung.com/java-error-catch)
17-
- [[Next -->]](/core-java-modules/core-java-exceptions-2)
16+
- [[Next -->]](../core-java-exceptions-2)
17+
-

core-java-modules/core-java-exceptions/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@
2121
<artifactId>mail</artifactId>
2222
<version>${javax.mail.version}</version>
2323
</dependency>
24-
<dependency>
25-
<groupId>org.projectlombok</groupId>
26-
<artifactId>lombok</artifactId>
27-
<version>${lombok.version}</version>
28-
<scope>provided</scope>
29-
</dependency>
3024
<dependency>
3125
<groupId>org.apache.commons</groupId>
3226
<artifactId>commons-lang3</artifactId>

0 commit comments

Comments
 (0)