How to troubleshoot this error " Uncaught exception in exposed API method"?

Can I know how to get rid of this troubleshooting?
" Uncaught exception in exposed API method"