ui: add custom error handling page

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #256
This commit is contained in:
Rohit Yadav 2015-05-18 22:09:11 +01:00
parent bc636de122
commit 112cecc2d4
2 changed files with 18 additions and 0 deletions

View File

@ -77,4 +77,10 @@
<url-pattern>*.html</url-pattern>
<url-pattern>*.js</url-pattern>
</servlet-mapping>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error.jsp</location>
</error-page>
</web-app>

12
ui/error.jsp Normal file
View File

@ -0,0 +1,12 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Apache CloudStack</title>
<link rel="shortcut icon" href="images/cloud.ico" />
</head>
<body>
<p>Oops, looks like CloudStack hit an error. Ask your CloudStack Administrator to look into it.</p>
</body>
</html>