+1 on making the adapter create the error instance. Or create one outside that is reused.