summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_error_utils.h
blob: f9f1e7c20185f3c2f2c89c327f01a449787204a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_
#define CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_

#include <string>

class ExtensionErrorUtils {
public:
  // Creates an error messages from a pattern. Places first instance if "*"
  // with |s1|.
  static std::string FormatErrorMessage(const std::string& format,
    const std::string s1);

  // Creates an error messages from a pattern. Places first instance if "*"
  // with |s1| and second instance of "*" with |s2|.
  static std::string FormatErrorMessage(const std::string& format,
    const std::string s1,
    const std::string s2);
};

#endif  // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_