notes/pl/java/features/ex-err.txt
Ihar Hancharenka ebe15633b2 m
2025-01-24 11:03:08 +03:00

56 строки
2.2 KiB
Plaintext

2024
JUGNsk - Sitnikov - Fundamentals and Details Mechanics of Java Exceptions of 1:01:43
https://www.youtube.com/watch?v=UIbbNsta2UE
! 22:00 -XX:HeapDumpGzipLevel=5
! -XX:CrashDumpOnOutOfMemory # minidump
! 40:00 while(true) {
! if (Thread.interrupted()) { thrown new InterruptedException(); }
! try {
! Thread.sleep(300);
! } catch (InterruptedException ignore) {
! Thread.currentThread().interrupt();
! return;
! }
! }
! 46:00 StackWalker.getInstance(RETAIN_CLASS_REFERENCE).getCallerClass();
! StackWalker.getInstance().walk(s -> s.findFirst().get().getLineNumber());
2022
Devoxx - Subramaniam - Exception Handling in Functional and Reactive Programming of 2:29:17
https://www.youtube.com/watch?v=S5tLVsvbHBg
2021
https://bookflow.ru/sobesedovanie-po-java-isklyucheniya-exceptions-voprosy-i-otvety/
http://victorrentea.ro/blog/exception-handling-guide-in-java/
https://www.linkedin.com/learning/java-exception-handling/what-are-errors
Errors - are a subset of Throwables, indicating serious problem with an app
IOError
unrecoverable input/output error
serious issue with underlying FS
VirtualMachineError - running out of resources on JVM
- InternalError, UnknownError, OutOfMemoryError, StackOverflowError
Exceptions
Checked (at compile time)
IOException->FileNotFoundException
Unchecked (run-time)
NullPointerException
2020
CSC - Valeev - Ex, try-catch, generics and varargs of 1:48:15
https://www.youtube.com/watch?v=usiKCn7SwxI
https://javax0.wordpress.com/2020/05/13/all-you-wanted-to-know-about-throwable/
!!!
2019
https://dzone.com/articles/recovering-from-exceptions-in-locks
2018
https://habr.com/post/431586/
https://www.baeldung.com/java-exceptions
https://stackify.com/types-of-exceptions-java/
2017
CSC - Valeev - L4 - Packages Exceptions and Generics 29:00 of 1:36:18
https://www.youtube.com/watch?v=vfewyonYXOw
! 28:00 hier of Checked/Unchecked ex-s
Thread.currentThread().getStackTrace()
Thread.setDefaultUncaughtExceptionHandler(
new ElasticsearchUncaughtExceptionHandler(() -> Node.NODE_NAME_SETTING.get(settings)));