/** * Método para crear un nuevo registro */ public static void insert(String code, String name) { try { if (TaskStatusDAL.exists(code, name)) { throw new ExistsException(); } else { TaskStatusDAL.insert(code, name); } } catch (Exception e) { throw e; } }