60 questions for “Error & Exception Handling”

Found in 1 field. Select a question to see its full answer.

Information Technology

60 questions in 10 technologies

#QuestionTechnologyTopicLevel
1What is exception chaining in PHP, and how does the previous exception parameter help preserve the original context when re throwing an error? PHP › Error & Exception HandlingPHPError & Exception HandlingIntermediate
2What is the difference between a PHP error and a PHP exception? PHP › Error & Exception HandlingPHPError & Exception HandlingBeginner
3How do you set a global exception handler and error handler in PHP to consistently catch and log any uncaught exceptions or errors across an entire application? PHP › Error & Exception HandlingPHPError & Exception HandlingAdvanced
4How does a try catch block work in PHP, and how do you catch and handle a specific exception that might be thrown? PHP › Error & Exception HandlingPHPError & Exception HandlingBeginner
5How do you create and throw a custom exception class in PHP, and why would you define your own exception types instead of using PHP's built in generic Exception class? PHP › Error & Exception HandlingPHPError & Exception HandlingIntermediate
6What best practices should guide how an application logs, reports, and responds to exceptions differently across development and production environments? PHP › Error & Exception HandlingPHPError & Exception HandlingAdvanced
7How does the finally block work alongside try and catch, and what are appropriate use cases for it? PHP › Error & Exception HandlingPHPError & Exception HandlingIntermediate
8Why is proper error handling important in a Flutter app, and what happens by default if an unhandled exception occurs somewhere within a running app? Flutter › Error Handling & Crash Reporting (Sentry & Crashlytics)FlutterError Handling & Crash Reporting (Sentry & Crashlytics)Beginner
9What is the role of the [ApiController] attribute in automatically handling certain error scenarios without explicit exception handling code? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareIntermediate
10What role does the [ApiController] attribute play in automatically handling certain error scenarios without explicit exception handling code? ASP.NET Core › Error HandlingASP.NET CoreError HandlingIntermediate