Code example for SQLNonTransientConnectionException

0
                        code, cause);
            } else { 
 
                // the database is (permanently) shut down or the connection is 
                // (permanently) closed or broken 
                return new SQLNonTransientConnectionException(msg, sqlstate,
                        code, cause);
            } 
        } else if (sqlstate.startsWith("22")) {
            return new SQLDataException(msg, sqlstate, code, cause);
        } else if (sqlstate.startsWith("23")) {
            return new SQLIntegrityConstraintViolationException(msg, sqlstate,
                    code, cause);
        } else if (sqlstate.startsWith("28")) {
            return new SQLInvalidAuthorizationSpecException(msg, sqlstate,
                    code, cause);
        } else if (sqlstate.startsWith("42") || sqlstate.startsWith("37")
                   || sqlstate.startsWith("2A")) {
 
            // TODO: 
Experience pair programming with AI  Get Codota for Java