How to throw a SQL exception in Java

How to throw a SQL exception in Java