Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

When will I get or not get Error and Error/Min metrics for Information Points?

When you will get Error and Error/Min Metrics for Information Point

Whenever there is unhandled exception and you are creating an information point on that Class/Method, it will collect Error and Error/Min metrics for that information point. The code snippet will look like as mentioned below:

 

      public void getResult () throws NumberFormatException{
           String name = "abc";
           Integer.parseInt((name));

         }

 

In the above case, only the information point will show you Error and Error/Min metrics and you will not get any Error and Error/Min metric for a BT if you created a POJO Custom BT on same Class/Method.

 

When you will not get Error and Error/Min Metrics for Information Point

Whenever you are catching those exception using logger, you will get Error and Error/Min metrics for the BT, not for the information point. The code snippet will look like this:

 

    public void getResult() {
    try {
         String name = "abc";
         Integer.parseInt((name));
        } catch (NumberFormatException e) {
          logger.log(Level.SEVERE, e.getMessage());
        }
      }

 

In above case, you will get Error and Error/Min metrics for the BT if you created either a POJO Custom BT or Default BT, but if you created an information point of the same Class/Method, it will not show you Error and Error/Min metrisc.

 

Version history
Revision #:
3 of 3
Last update:
2 weeks ago
Updated by:
 
0 Kudos