public static void Main()
catch (WorkstationNotFoundException e){
Console.WriteLine("Workstation not found. workstaionId: " + e.WorkstationId);
Console.WriteLine("some other exception");
public static void DoWork() {
throw new WorkstationNotFoundException("myworkstation") ;
public class WorkstationNotFoundException:Exception {
public string WorkstationId {get; private set;}
public WorkstationNotFoundException(string workstationId){
WorkstationId = workstationId;