42 lines
884 B
C++
42 lines
884 B
C++
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (C) 2007 Intel Corporation
|
|
//
|
|
// File: ExceptionParser.h
|
|
//
|
|
// Contents: A Parser for the WS-Management Exception
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef EXCEPTION_PARSER_H
|
|
#define EXCEPTION_PARSER_H
|
|
|
|
#include <string.h>
|
|
#include "Exception.h"
|
|
|
|
#define CONST_10 10
|
|
#define CHAR_0 '0'
|
|
#define CHAR_MINUS '-'
|
|
#define NUMBER_STRING_SIZE 12
|
|
|
|
using namespace WsmanExceptionNamespace;
|
|
|
|
class ExceptionParser
|
|
{
|
|
private:
|
|
string faultDetail;
|
|
bool faultDetailExist;
|
|
|
|
public:
|
|
ExceptionParser(GeneralWsmanException& e);
|
|
~ExceptionParser(void);
|
|
string ToString();
|
|
string IntegerToString(const int number);
|
|
unsigned int LibCode;
|
|
unsigned int AMTCode;
|
|
unsigned int HTTPCode;
|
|
bool AMTCodeSpecified;
|
|
};
|
|
|
|
#endif /*EXCEPTION_PARSER_H*/
|