def METHOD_NAME(name, val, reason):
    raise TRexError('Validation error, argument "{name}" with value "{val}"\nReason: {reason}'.format(name=name,
                                                                                                        val=val,
                                                                                                        reason=reason))