package org.example.customerdao.utility; import java.sql.SQLException; public class ErrorFormatter { public static String extractError(SQLException sqle) { return String.format("ErrorCode: %s; SQLState: %s", sqle.getErrorCode(), sqle.getSQLState()); } }