| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- import java.util.Optional;
-
- class ErrorHandling {
-
- void handleErrorByThrowingIllegalArgumentException() {
- throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
- }
-
- void handleErrorByThrowingIllegalArgumentExceptionWithDetailMessage(String message) {
- throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
- }
-
- void handleErrorByThrowingAnyCheckedException() {
- throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
- }
-
- void handleErrorByThrowingAnyCheckedExceptionWithDetailMessage(String message) {
- throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
- }
-
- void handleErrorByThrowingAnyUncheckedException() {
- throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
- }
-
- void handleErrorByThrowingAnyUncheckedExceptionWithDetailMessage(String message) {
- throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
- }
-
- void handleErrorByThrowingCustomCheckedException() {
- throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
- }
-
- void handleErrorByThrowingCustomCheckedExceptionWithDetailMessage(String message) {
- throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
- }
-
- void handleErrorByThrowingCustomUncheckedException() {
- throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
- }
-
- void handleErrorByThrowingCustomUncheckedExceptionWithDetailMessage(String message) {
- throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
- }
-
- Optional<Integer> handleErrorByReturningOptionalInstance(String integer) {
- throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
- }
-
- }
|