I was using the following to provide more information on a common exception that can occour in a piece of my code, the only problem is this errors if an exception is generated that has no InnerException message.
Catch ex As Exception
'MessageBox.Show(ex.Message) 'If there is no InnerException.
MessageBox.Show(ex.InnerException.InnerException.Message)
End Try
Is there a better method of doing this?