---
title: "Explain about the exceptions of Android?"  
description: "Explain about the exceptions of Android?"  
author: "Anonymous User"  
published: 2015-06-19  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/2630/explain-about-the-exceptions-of-android  
category: "android"  
tags: ["android", "exception"]  
reading_time: 1 minute  

---

# Explain about the exceptions of Android?

\
**The following are the exceptions that are supported by Android*** InflateException : When an error conditions are occurred, this exception is thrown* Surface.OutOfResourceException: When a surface is not created or resized, this exception is thrown* SurfaceHolder.BadSurfaceTypeException: This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS* WindowManager.BadTokenException: This exception is thrown at the time of trying to add view an invalid WindowManager.LayoutParamstoken.\

## Answers

### Answer by Anonymous User

\
**The following are the exceptions that are supported by Android*** InflateException : When an error conditions are occurred, this exception is thrown* Surface.OutOfResourceException: When a surface is not created or resized, this exception is thrown* SurfaceHolder.BadSurfaceTypeException: This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS* WindowManager.BadTokenException: This exception is thrown at the time of trying to add view an invalid WindowManager.LayoutParamstoken.\


---

Original Source: https://www.mindstick.com/interview/2630/explain-about-the-exceptions-of-android

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
