For $ z\in \partial B^n$, the boundary of the unit ball in $\mathbb{C}^n$, let $\Lambda (z)=\lbrace \lambda \:|\lambda |\le 1\rbrace $. If $ f\in \mathbb{O}(B^n)$ then we call $E(f)=\lbrace z\in \partial B^n\:\int _{\Lambda (z)}|f(z)|^2\mathrm{d}\Lambda (z)=\infty \rbrace $ the exceptional set for $f$. In this note we give a tool for describing such sets. Moreover we prove that if $E$ is a $G_\delta $ and $F_\sigma $ subset of the projective $(n-1)$-dimensional space $\mathbb{P}^{n-1}=\mathbb{P}(\mathbb{C}^n)$ then there exists a holomorphic function $f$ in the unit ball $B^n$ so that $E(f)=E$.
We develop a theory of removable singularities for the weighted Bergman space ${\mathcal A}^p_\mu (\Omega )=\lbrace f \text{analytic} \text{in} \Omega \: \int _\Omega |f|^p \mathrm{d}\mu < \infty \rbrace $, where $\mu $ is a Radon measure on $\mathbb{C}$. The set $A$ is weakly removable for ${\mathcal A}^p_\mu (\Omega \setminus A)$ if ${\mathcal A}^p_\mu (\Omega \setminus A) \subset \text{Hol}(\Omega )$, and strongly removable for ${\mathcal A}^p_\mu (\Omega \setminus A)$ if ${\mathcal A}^p_\mu (\Omega \setminus A) = {\mathcal A}^p_\mu (\Omega )$. The general theory developed is in many ways similar to the theory of removable singularities for Hardy $H^p$ spaces, $\mathop {\mathrm BMO}$ and locally Lipschitz spaces of analytic functions, including the existence of counterexamples to many plausible properties, e.g. the union of two compact removable singularities needs not be removable. In the case when weak and strong removability are the same for all sets, in particular if $\mu $ is absolutely continuous with respect to the Lebesgue measure $m$, we are able to say more than in the general case. In this case we obtain a Dolzhenko type result saying that a countable union of compact removable singularities is removable. When $\mathrm{d}\mu = w\mathrm{d}m$ and $w$ is a Muckenhoupt $A_p$ weight, $1<p<\infty $, the removable singularities are characterized as the null sets of the weighted Sobolev space capacity with respect to the dual exponent $p^{\prime }=p/(p-1)$ and the dual weight $w^{\prime }=w^{1/(1-p)}$.