View Javadoc
1   package org.example.customerdao.utility;
2   
3   import java.sql.SQLException;
4   
5   public class ErrorFormatter {
6   	
7   	public static String extractError(SQLException sqle) {
8   		
9   		return String.format("ErrorCode: %s; SQLState: %s", sqle.getErrorCode(), sqle.getSQLState());
10  	}
11  }