Create generic cloudexception create method