Validation - multi element validation

Validation - multi element validation

I have four inputs that relate to each other and would like to right a validation that checks each against some business logic and show a single error message if validation fails.  Are there any examples of how to do this? or, best practices?