I have a service provider that does stuff(for lack of a better word).
Several functions in that service provider deal with a custom table in the database. Lets assume that in a function an
id is passed, if said
id doesn't exist I want to stop the process. Throwing out an exception would normally be the way to go, because this is an exceptional situation. The process cannot continue without that information.
I'm not exactly sure how to handle that in Drupal. I don't have that much experience with it.
I noticed that Symfony has an exception handler itself but I'm sure Drupal handles things differently.
Do I log the exception and kill the process? Just throw it out and hope for the best?