public void cadastraTarefa(String nome, String descricao, String data,
			String hora) {
		try {
			tarefasEmAberto.add(new Tarefa(nome, descricao, data, hora));

		} catch (NomeNullException e) {
			try {
				FacesContext.getCurrentInstance().addMessage(null,
						new FacesMessage(e.getMessage(), e.getMessage()));

			} catch (Exception e1) {
				System.out.println(e.getMessage());
			}
		} catch (DataException e) {
			try {
				FacesContext.getCurrentInstance().addMessage(null,
						new FacesMessage(e.getMessage(), e.getMessage()));

			} catch (Exception e1) {
				System.out.println(e.getMessage());
			}
		} catch (IllegalArgumentException e) {
			try {
				FacesContext.getCurrentInstance().addMessage(null,
						new FacesMessage(e.getMessage(), e.getMessage()));

			} catch (Exception e1) {
				System.out.println(e.getMessage());
			}
		} catch (Exception e) {
			try {
				FacesContext.getCurrentInstance().addMessage(null,
						new FacesMessage(e.getMessage(), e.getMessage()));

			} catch (Exception e1) {
				System.out.println(e.getMessage());
			}
		}
	}