A pretentious and usually insulting or moralizing way for self-absorbed, pseudointellectual people to say "an example to live by."
That douchebag professor just flunked me for plagerizing my paper. He said "Let your failure be an object lesson for your future efforts to decieve."