??? ?? ???? ??? ??? ??? ???? ???, ??? ??? ??? ???? ??? ?????. ??? ?? ??? ??, ??, ??? ?? ???? ?? ? ???, ??? ?? ? ?? ??? ??? ?????. ?? ???? ??? ?? ?? ??? ?? ??? ?? ??? ???????.
1. ??? ??
?? ??? ???? ???????? ??? ???, ??? ??? ??? ??????, ?? ?? ?? ???? ???? ?????. ??? ?? ??? ??? ???? ??? ??? ????
1. ???? ??
???? ??? ???, ??? ??, ?? ??? ??? ???? ?? ???? ?????. ?? ?? ???? ?? ??? ???? ????, ???? ??? ? ??? ??? ??? ?? ??? ????.
2. ???? ??
???? ??? ??? ?????. ???? ??? ??? ????.
2.1 ?? ???
??? ?? ??? ?? ?? ?? ? ?? ??????. ?? ?? ??? ?? ?? ?? ????? ???? ????.
2.2 ?? ???
?? ??? ??
????? ?? ????? ??? ??? ??? ??? ???? ??????. ?? ????? ?? ???? ????? ??? ??? ?? ? ?????. ?? ?? ???? ?? ???? ??? ???? ??, ????? ???? ??? ? ?? ????? ??????.
????? ??? ??
???? ?? ??: ?? ???? ?? ?? ??? ????(ISP)? ?? ??? ? ????. ????? ???? ??? ???? ??? ??? ? ????.
?? ?? ??: ??? ?? ????
1. ???? ?????
???? ?, ???, ?? ?? ???? ??? ??? ???? ?? ?? ?????. ?? ??? ???? ????? ???? ??, ??? ??? ?? ??? ???. ???? ??? ????, ??? ??? ??? ?? ??? ??? ??? ? ????.
2. ???? ?? ??
1) ?? ??? ?? ??
?? ?? ?? ??? ??? ??? ???? ??? ? ????. ?? ??? ??? ??? ??????? ??? ?? ???? ?????.
2) ???? ??
Error handling is an essential part of writing reliable and maintainable code, especially in JavaScript-based environments like TypeScript. TypeScript provides built-in error handling with its Error class, but for more complex applications, creating custom error types can greatly improve debugging a
Post navigation