1// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_
6#define CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_
7#pragma once
8
9#include <string>
10
11class ExtensionErrorUtils {
12 public:
13  // Creates an error messages from a pattern.
14  static std::string FormatErrorMessage(const std::string& format,
15    const std::string& s1);
16
17  static std::string FormatErrorMessage(const std::string& format,
18    const std::string& s1,
19    const std::string& s2);
20
21  static std::string FormatErrorMessage(const std::string& format,
22    const std::string& s1,
23    const std::string& s2,
24    const std::string& s3);
25};
26
27#endif  // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_
28