In my MVC project i set a Default error page in the web.config
<customErrors defaultRedirect="~/Error/Index" mode="RemoteOnly">
</customErrors>
till now all is fine, in any exception thrown the user get the default error page.
Now i want to add another error page that in specific exception will load instead of the default error page that set in the web.config.
I had an idea: maybe in a new class that inherit "ActionFilterAttribute" and implement "IExceptionFilter", i will in any exception thrown from an action if the type of the exception is my specific case, in this case i need to change the redirect route that set in the web.config as default, but how can i do it? or maybe someone have an another idea?