Skip to content

Instantly share code, notes, and snippets.

View vandatech's full-sized avatar

vandatech

  • London
View GitHub Profile
@vandatech
vandatech / gist:5361608
Created April 11, 2013 08:07
Cant test handling of AWS exceptions because constructors are internal ?
using System;
using System.Reflection;
namespace MyLib.Tests
{
public class AwsExceptionFactory<T>
{
// amazon exceptions have internal constructors and so have to use reflection to create instances
public static T GetException()
{