Handling exception in method or default