Merge pull request #12352 from hkhan/JAVA-12620-split-java-exceptions

[JAVA-12620] Split core-java-exceptions module
This commit is contained in:
kwoyke 2022-06-15 08:28:31 +02:00 committed by GitHub
commit c841688ea4
8 changed files with 30 additions and 18 deletions

View File

@ -14,3 +14,5 @@ This module contains articles about core java exceptions
- [How to Find an Exceptions Root Cause in Java](https://www.baeldung.com/java-exception-root-cause)
- [Java IOException “Too many open files”](https://www.baeldung.com/java-too-many-open-files)
- [When Does Java Throw the ExceptionInInitializerError?](https://www.baeldung.com/java-exceptionininitializererror)
- More articles: [[<-- prev]](../core-java-exceptions-1) [[next -->]](../core-java-exceptions-3)

View File

@ -1,5 +1,8 @@
### Relevant Articles:
## Core Java Exceptions
This module contains articles about core java exceptions
### Relevant Articles:
- [NoSuchMethodError in Java](https://www.baeldung.com/java-nosuchmethod-error)
- [IllegalArgumentException or NullPointerException for a Null Parameter?](https://www.baeldung.com/java-illegalargumentexception-or-nullpointerexception)
- [IllegalMonitorStateException in Java](https://www.baeldung.com/java-illegalmonitorstateexception)
@ -10,3 +13,5 @@
- [NoSuchFieldError in Java](https://www.baeldung.com/java-nosuchfielderror)
- [IllegalAccessError in Java](https://www.baeldung.com/java-illegalaccesserror)
- [Working with (Unknown Source) Stack Traces in Java](https://www.baeldung.com/java-unknown-source-stack-trace)
- More articles: [[<-- prev]](../core-java-exceptions-2) [[next -->]](../core-java-exceptions-4)

View File

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

View File

@ -22,6 +22,12 @@
<version>${h2.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>

View File

@ -1,9 +1,9 @@
package com.baeldung.exceptions.sneakythrows;
import java.io.IOException;
package com.baeldung.exception.sneakythrows;
import lombok.SneakyThrows;
import java.io.IOException;
public class SneakyThrowsExamples {
public static <E extends Throwable> void sneakyThrow(Throwable e) throws E {

View File

@ -1,12 +1,12 @@
package com.baeldung.exceptions.sneakythrows;
package com.baeldung.exception.sneakythrows;
import static com.baeldung.exceptions.sneakythrows.SneakyThrowsExamples.throwSneakyIOException;
import static com.baeldung.exceptions.sneakythrows.SneakyThrowsExamples.throwSneakyIOExceptionUsingLombok;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import org.junit.Test;
import java.io.IOException;
import org.junit.Test;
import static com.baeldung.exception.sneakythrows.SneakyThrowsExamples.throwSneakyIOException;
import static com.baeldung.exception.sneakythrows.SneakyThrowsExamples.throwSneakyIOExceptionUsingLombok;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
public class SneakyThrowsExamplesUnitTest {

View File

@ -9,9 +9,9 @@ This module contains articles about core java exceptions
- [Exception Handling in Java](https://www.baeldung.com/java-exceptions)
- [Differences Between Final, Finally and Finalize in Java](https://www.baeldung.com/java-final-finally-finalize)
- [Difference Between Throw and Throws in Java](https://www.baeldung.com/java-throw-throws)
- [“Sneaky Throws” in Java](https://www.baeldung.com/java-sneaky-throws)
- [The StackOverflowError in Java](https://www.baeldung.com/java-stack-overflow-error)
- [Checked and Unchecked Exceptions in Java](https://www.baeldung.com/java-checked-unchecked-exceptions)
- [Common Java Exceptions](https://www.baeldung.com/java-common-exceptions)
- [Will an Error Be Caught by Catch Block in Java?](https://www.baeldung.com/java-error-catch)
- [[Next -->]](/core-java-modules/core-java-exceptions-2)
- [[Next -->]](../core-java-exceptions-2)
-

View File

@ -21,12 +21,6 @@
<artifactId>mail</artifactId>
<version>${javax.mail.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>