Hmmm, as pinpointed by my good friend Claudio Figueiredo , the compiler isn't very thrilled with my last syntax : 1: public string MyCode(){ 2: try { 3: return "some value" ; 4: } 5: catch (System.Exception ex){ 6: Throw 7: .WithMessage( "something" )