---
title: "Exceptions supported by Andriod"  
description: "Exceptions that are supported by Andriod  1. InflateException : Exception thrown - When an error conditions are occurred.    2.  Surface.OutOfResource"  
author: "Uttam Misra"  
published: 2011-07-20  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/209/exceptions-supported-by-andriod  
category: "android"  
tags: ["android"]  
reading_time: 1 minute  

---

# Exceptions supported by Andriod

##### Exceptions that are supported by Andriod

\
1. InflateException : [Exception](https://www.mindstick.com/articles/1824/objective-c-exception-handling) thrown - When an [error](https://yourviews.mindstick.com/view/88527/fixing-quickbooks-error-4120-reinstalling-vs-repairing) [conditions](https://www.mindstick.com/blog/394/javascript-if-else) are occurred.\
\
2. [Surface](https://www.mindstick.com/forum/907/how-to-surface-a-value-for-more-than-one-row-in-mysql).OutOfResourceException: Exception thrown - When a surface is not created or resized. \
\
3. SurfaceHolder.BadSurfaceTypeException: Exception thrown - From the lockCanvas() [method](https://www.mindstick.com/forum/166/webservice-method), when invoked on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS\
\
4. WindowManager.BadTokenException: Exception thrown - At the time of [trying](https://answers.mindstick.com/qa/93698/6-mistakes-couples-are-trying-to-save-money) to [add](https://www.mindstick.com/forum/448/how-to-add-advertisement-functionalities-in-asp-dot-net-page) [view](https://yourviews.mindstick.com/view/84701/layoffs-in-google-india-2023-view) an invalid WindowManager.LayoutParamstoken.

---

Original Source: https://www.mindstick.com/blog/209/exceptions-supported-by-andriod

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
