Here you can find the source of isXJ015Error(Throwable exception)
private static boolean isXJ015Error(Throwable exception)
//package com.java2s; /*/*from w ww.java 2 s .co m*/ * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */ import java.sql.SQLException; public class Main { private static boolean isXJ015Error(Throwable exception) { while (exception != null) { if (exception instanceof SQLException && "XJ015".equals(((SQLException) exception) .getSQLState())) { return true; } exception = exception != exception.getCause() ? exception .getCause() : null; } return false; } }