Allow message prefix customization.
Added throw example.