There isn't much code involve doing this, just adding the ExceptionShielding attribute in your service contract and specifying the FaultContractType in your methods. This task is more of configuration. You can refer to this
blog for the detailed steps. It uses 3.1 version of Enterprise Library but the same steps still apply to the latest version.