Support extension object in CustomError