build exceptions