2 * Copyright (C) 2013 HERE Global B.V. All rights reserved.
3 * This software, including documentation, is protected by copyright controlled by
4 * HERE Global B.V. (“Software”). All rights are reserved. Copying, including reproducing,
5 * storing, adapting or translating, any or all of this material requires the prior
6 * written consent of HERE Global B.V. You may use this
7 * Software in accordance with the terms and conditions defined in the
8 * HERE Location Platform Services Terms and Conditions, available at
9 * http://developer.here.com/terms-conditions-base
11 * As an additional permission to the above, you may distribute Software,
12 * in object code format as part of an Application, according to, and subject to, terms and
13 * conditions defined in the Tizen Software Development kit (“SDK”) License Agreement.
14 * You may distribute such object code format Application under terms of your choice,
15 * provided that the header and source files of the Software have not been modified.
21 #include "common/HereMaps_global.h"
22 #include "common/ErrorBase.h"
24 HERE_MAPS_BEGIN_NAMESPACE
28 * This class encapsulates an error condition that may arise when processing a
33 class EXPORT_API RouterError : public ErrorBase
38 * This enumeration defines identifiers for the recognized error types.
42 EC_ParseError, ///< Indicates a parsing error.
43 EC_UnsupportedOptionError, ///< Indicates that an attempt to use an
44 /// unsupported option was detected.
45 EC_UnknownError ///< Indicates an unknown error.
49 * This method is a constructor that initializes a new instance of the class
50 * using the error code value supplied by the caller.
52 * @param aErrorCode A value indicating the error type to use when
53 * initializing the new instance of the class.
55 RouterError(ErrorCode aErrorCode);
58 * This method is the (virtual) destructor.
60 virtual ~RouterError();
63 * This method retrieves the error code.
65 * @return A value indicating the error type.
67 ErrorCode GetErrorCode() const;
70 * This method obtains a string representation of the given instance.
71 * The method must be implemented by derived classes.
73 * @return A string containing the text representation of the given instance
76 virtual String ToString() const;
79 HERE_MAPS_NO_COPY_NO_ASSIGN(RouterError);
81 class RouterErrorImpl;
82 RouterErrorImpl* m_pImpl;
86 HERE_MAPS_END_NAMESPACE