The following are the exceptions that are supported by allow:
* InflateException : When an error conditions are occurred, this exception is thrown
* Surface.Out0fResourceException: When a surface is not created or resized, this extion is thrown
* SurfaceHolder.BadSurface TypeException: This exception is thrown from the lockCanvas()
method, when invoked on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS I WindowManager.BadTokenException: This exception is thrown at the time of trying to add view an invalid WindowManager.Layou tParamstoken.