function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
symantecAPsymantecAP 

Exceptions

Hi All

 

I would like to know where is the Error log stored in Salesforce. I have written Apex code which catch and throw exceptions.

I want to know where the exceptions log is maintained in SFDC.

Happy2HelpHappy2Help

Hi

 

you can find it in setup(top o fwindow) =>(In Left Pane menu items)Monitoring=>DebugLog.

 

Hope it's help you

 

Thanks

 

Michael

symantecAPsymantecAP

Thanks Miachel.

 

In Debug logs. Do we have exception list also.?

gv007gv007

When you are writing some code to catch that exception.print that exception .You can that exception in debug log and system.

 

tyo see in debug log you enable the user.

 

monitoring--->debug-->new-->select the user and save it.

 

Sample code to catch the exception

 

try

{

 

//yours code here

}

catch(exception e)

{

e.getmessage();//you need to use this method to print the exception message in yours code.

System.debug('Some message'+e.getmessage);//it is one of the way

}

 

symantecAPsymantecAP

Thanks Gopi

 

For example , During An Operation there is an Exception and system shows the exception on front end.

Is there a log maintained as to how many times did the operation throw that kind of exception?