Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 406 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

I am using

 catch (Exception e){ 
   ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'my error msg'); 
   ApexPages.addMessage(myMsg); 
} 

And have <apex:pageMessages/> in my VF page.

still i get my custom message + the salesforce standard exception displayed at my page. I want only my message to be shown.

For comment

catch(Exception e){
     if(validateVariable.contains('STRING_TOO_LONG') &&
          validateVariable.contains('data value too large') ) { 
        ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'Character limit exceeded. Please limit your essay in the prescribed character limit'); 
        ApexPages.addMessage(myMsg); 
       } 

I am using

 catch (Exception e){ 
   ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'my error msg'); 
   ApexPages.addMessage(myMsg); 
} 

And have <apex:pageMessages/> in my VF page.

still i get my custom message + the salesforce standard exception displayed at my page. I want only my message to be shown.

I am using

 catch (Exception e){ 
   ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'my error msg'); 
   ApexPages.addMessage(myMsg); 
} 

And have <apex:pageMessages/> in my VF page.

still i get my custom message + the salesforce standard exception displayed at my page. I want only my message to be shown.

For comment

catch(Exception e){
     if(validateVariable.contains('STRING_TOO_LONG') &&
          validateVariable.contains('data value too large') ) { 
        ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'Character limit exceeded. Please limit your essay in the prescribed character limit'); 
        ApexPages.addMessage(myMsg); 
       } 
deleted 7 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

I am using

 catch (Exception e){ 
   ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'my error msg'); 
   ApexPages.addMessage(myMsg); 
} 

And have <apex:pageMessages/> in my VF page.

still i get my custom message + the salesforce standard exception displayed at my page. I want only my message to be shown.

I am using

 catch (Exception e){ 
   ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'my error msg'); 
   ApexPages.addMessage(myMsg); 
} 

And have <apex:pageMessages/> in my VF page.

still i get my custom message + the salesforce standard exception displayed at my page. I want only my message to be shown.

I am using

 catch (Exception e){ 
   ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'my error msg'); 
   ApexPages.addMessage(myMsg); 
} 

And have <apex:pageMessages/> in my VF page.

still i get my custom message + the salesforce standard exception displayed at my page. I want only my message to be shown.

added 2 characters in body
Source Link
Sergej Utko
  • 22.1k
  • 11
  • 60
  • 88

I am using

 catch (Exception e){ 
   ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'my error msg'); 
   ApexPages.addMessage(myMsg); 
} 

And have apex:pageMessages/<apex:pageMessages/> in my VF page.

still i get my custom message + the salesforce standard exception displayed at my page. I want only my message to be shown.

I am using

 catch (Exception e){ 
   ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'my error msg'); 
   ApexPages.addMessage(myMsg); 
} 

And have apex:pageMessages/ in my VF page.

still i get my custom message + the salesforce standard exception displayed at my page. I want only my message to be shown.

I am using

 catch (Exception e){ 
   ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'my error msg'); 
   ApexPages.addMessage(myMsg); 
} 

And have <apex:pageMessages/> in my VF page.

still i get my custom message + the salesforce standard exception displayed at my page. I want only my message to be shown.

added 20 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99
Loading
Source Link
Loading