def customValidation(self):
    (information, warnings, critical) = ([], [], [])
    if ((self.response == 'success') and ((not self.data) and (not self.dataURL))):
        critical.append('.response is set to success, but neither .data nor .dataURL are set.')
    if (self.data and (not self.encoding)):
        critical.append('.data is set, but .encoding is missing')
    if (self.data and (not self.mimeType)):
        critical.append('.data is set, but .mimeType is missing')
    if (self.dataURL and (not self.mimeType)):
        critical.append('.dataURL is set, but .mimeType is missing')
    if (self.dataURL and self.data):
        critical.append('Either .dataURL or .data can be defined, not both')
    if ((self.response == ERROR) and self.errorMessage.isEmpty()):
        critical.append((".response is '%s', but .errorMessage is missing." % ERROR))
    (newInformation, newWarnings, newCritical) = super().customValidation()
    if newInformation:
        information.extend(newInformation)
    if newWarnings:
        warnings.extend(newWarnings)
    if newCritical:
        critical.extend(newCritical)
    return (information, warnings, critical)
def customValidation(self):
    (information, warnings, critical) = ([], [], [])
    if ((self.response == 'success') and ((not self.data) and (not self.dataURL))):
        critical.append('.response is set to success, but neither .data nor .dataURL are set.')
    if (self.data and (not self.encoding)):
        critical.append('.data is set, but .encoding is missing')
    if (self.data and (not self.mimeType)):
        critical.append('.data is set, but .mimeType is missing')
    if (self.dataURL and (not self.mimeType)):
        critical.append('.dataURL is set, but .mimeType is missing')
    if (self.dataURL and self.data):
        critical.append('Either .dataURL or .data can be defined, not both')
    if ((self.response == ERROR) and self.errorMessage.isEmpty()):
        critical.append((".response is '%s', but .errorMessage is missing." % ERROR))
    (newInformation, newWarnings, newCritical) = super().customValidation()
    if newInformation:
        information.extend(newInformation)
    if newWarnings:
        warnings.extend(newWarnings)
    if newCritical:
        critical.extend(newCritical)
    return (information, warnings, critical)