title: Nestjs expected to throw customException but always throws default InternalServerErrorException
body: <p>I have a dynamic module that was registered in the app module. It has a utility class called PermissionsUtil, In which it handles certain validation logic and throws UnauthorizedException, But I always get InternalServerErrorException at the receiver end.</p>
  <h2>Inside Dynamic Module</h2>
  <h3>permissions.util.ts</h3>
  <pre><code>@Injectable()
   class PermissionsUtil {
        
     someFunction() {
  
         ...performs validation logic here
  
          if(badCase) {
           throw new UnauthorizedException('Insufficient Permission');
        }
        return true;
      }
    }
  </code></pre>
  <h2>Inside app Module</h2>
  <h3>some.controller.ts</h3>
  <pre><code>@Controller()
   class SomeController {
  constructor(
      private readonly permissionsUtil: PermissionsUtil,
    ) {}
     @Patch()
     someFunction() {
       await this.permissionsUtil.someFunction(); //here it should throw unAuthorizedException but throws default InternalServerErrorException
        return true;
      }
    }
  </code></pre>
  <p>Note: All modules, controllers, and service registrations were correct and working as expected.</p>