[JAVA-12620] Split core-java-exceptions module

This commit is contained in:
Haroon Khan 2022-06-14 21:56:25 +01:00
parent 1a1d011466
commit 3862ce78f3
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) - [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) - [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) - [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) - [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) - [IllegalArgumentException or NullPointerException for a Null Parameter?](https://www.baeldung.com/java-illegalargumentexception-or-nullpointerexception)
- [IllegalMonitorStateException in Java](https://www.baeldung.com/java-illegalmonitorstateexception) - [IllegalMonitorStateException in Java](https://www.baeldung.com/java-illegalmonitorstateexception)
@ -10,3 +13,5 @@
- [NoSuchFieldError in Java](https://www.baeldung.com/java-nosuchfielderror) - [NoSuchFieldError in Java](https://www.baeldung.com/java-nosuchfielderror)
- [IllegalAccessError in Java](https://www.baeldung.com/java-illegalaccesserror) - [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) - [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 ArrayIndexOutOfBoundsException](https://www.baeldung.com/java-arrayindexoutofboundsexception)
- [Java Missing Return Statement](https://www.baeldung.com/java-missing-return-statement) - [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) - [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> <version>${h2.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -1,9 +1,9 @@
package com.baeldung.exceptions.sneakythrows; package com.baeldung.exception.sneakythrows;
import java.io.IOException;
import lombok.SneakyThrows; import lombok.SneakyThrows;
import java.io.IOException;
public class SneakyThrowsExamples { public class SneakyThrowsExamples {
public static <E extends Throwable> void sneakyThrow(Throwable e) throws E { 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 org.junit.Test;
import static com.baeldung.exceptions.sneakythrows.SneakyThrowsExamples.throwSneakyIOExceptionUsingLombok;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import java.io.IOException; 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 { 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) - [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) - [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) - [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) - [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) - [Checked and Unchecked Exceptions in Java](https://www.baeldung.com/java-checked-unchecked-exceptions)
- [Common Java Exceptions](https://www.baeldung.com/java-common-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) - [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> <artifactId>mail</artifactId>
<version>${javax.mail.version}</version> <version>${javax.mail.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId> <artifactId>commons-lang3</artifactId>