April 07, 2023

Warning BP Rule: [BPEmptyCompoundStatement]: Empty Compound statement {...}

  For empty catches, you can use the method ExceptionTextFallThrough to avoid BP warning.

//Call this method to acknowledge the text in the exception should fallthrough

//and eventually be caught by the infolog.

//Example:

try

{

}

catch

{

    ExceptionTextFallThrough();

}

No comments:

Post a Comment