Handled exceptions for erb.