Interface ValidaAlertaETrava.Validacao<E extends Exception>
- Type Parameters:
E
- uma Exception eventualmente lançada por algum problema
- Enclosing class:
ValidaAlertaETrava
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Executa a validação e, se for necessário dar um alerta, lança uma
Exception ou retorna uma mensagem.
-
Method Summary
Modifier and TypeMethodDescriptionvalidar()
Lança uma Exception ou retorna uma mensagem se for preciso dar um alerta.
-
Method Details
-
validar
Lança uma Exception ou retorna uma mensagem se for preciso dar um alerta.- Returns:
- a mensagem de validação, ou nulo se não houver
- Throws:
TagException
- o alerta, se houverE
- se algum outro problema ocorrer
-