Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
trigger magento 500 error
// Trigger 500 response
// allows styling of "There has been an error processing your request" page
// note setIsDeveloperModes should be false to prevent xxception being thrown
throw new Exception('you shall not pass');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment