You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2004/05/13 14:18:31 UTC
cvs commit: ws-axis/c/src/wsdd AxisWsddException.h AxisWsddException.cpp
damitha 2004/05/13 05:18:31
Added: c/src/common AxisConfigException.h AxisConfigException.cpp
c/src/soap AxisSoapException.cpp AxisSoapException.h
c/src/wsdd AxisWsddException.h AxisWsddException.cpp
Log:
Exception handling related
Revision Changes Path
1.1 ws-axis/c/src/common/AxisConfigException.h
Index: AxisConfigException.h
===================================================================
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* @author Damitha Kumarage (damitha@opensource.lk, damitha@jkcsworld.com)
*
*/
#ifndef __AXISCONFIGEXCEPTION_H_OF_AXIS_INCLUDED_
#define __AXISCONFIGEXCEPTION_H_OF_AXIS_INCLUDED_
#include <string>
#include <exception>
#include <axis/server/AxisException.h>
using namespace std;
class AxisConfigException :public AxisException
{
public:
AxisConfigException();
AxisConfigException(int exceptionCode);
AxisConfigException(exception* e);
AxisConfigException(exception* e, int exceptionCode);
virtual ~AxisConfigException() throw();
};
#endif
1.1 ws-axis/c/src/common/AxisConfigException.cpp
Index: AxisConfigException.cpp
===================================================================
/* -*- C++ -*- */
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* @author Damitha Kumarage (damitha@opensource.lk, damitha@jkcsworld.com)
*
*/
#include <axis/server/AxisConfigException.h>
#include <exception>
using namespace std;
/**
* Default when no parameter passed. When thrown with no parameter
* more general AXISC_CONFIG_EXCEPTION is assumed.
*/
AxisConfigException::AxisConfigException()
{
processException(AXISC_CONFIG_EXCEPTION);
}
AxisConfigException::AxisConfigException (int iExceptionCode)
{
m_iExceptionCode = iExceptionCode;
processException (iExceptionCode);
}
AxisConfigException::AxisConfigException (exception* e)
{
processException (e);
}
AxisConfigException::AxisConfigException (exception* e, int iExceptionCode)
{
processException (e, iExceptionCode);
}
AxisConfigException::~AxisConfigException() throw ()
{
}
1.1 ws-axis/c/src/soap/AxisSoapException.cpp
Index: AxisSoapException.cpp
===================================================================
/* -*- C++ -*- */
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* @author Damitha Kumarage (damitha@opensource.lk, damitha@jkcsworld.com)
*
*/
#include <axis/server/AxisSoapException.h>
#include <exception>
using namespace std;
/**
* Default when no parameter passed. When thrown with no parameter
* more general AXISC_SOAP_EXCEPTION is assumed.
*/
AxisSoapException::AxisSoapException()
{
processException(AXISC_SOAP_EXCEPTION);
}
AxisSoapException::AxisSoapException (int iExceptionCode)
{
m_iExceptionCode = iExceptionCode;
processException (iExceptionCode);
}
AxisSoapException::AxisSoapException (exception* e)
{
processException (e);
}
AxisSoapException::AxisSoapException (exception* e, int iExceptionCode)
{
processException (e, iExceptionCode);
}
AxisSoapException::~AxisSoapException() throw ()
{
}
1.1 ws-axis/c/src/soap/AxisSoapException.h
Index: AxisSoapException.h
===================================================================
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* @author Damitha Kumarage (damitha@opensource.lk, damitha@jkcsworld.com)
*
*/
#ifndef __AXISSOAPEXCEPTION_H_OF_AXIS_INCLUDED_
#define __AXISSOAPEXCEPTION_H_OF_AXIS_INCLUDED_
#include <string>
#include <exception>
#include <axis/server/AxisException.h>
using namespace std;
class AxisSoapException :public AxisException
{
public:
AxisSoapException();
AxisSoapException(int exceptionCode);
AxisSoapException(exception* e);
AxisSoapException(exception* e, int exceptionCode);
virtual ~AxisSoapException() throw();
};
#endif
1.1 ws-axis/c/src/wsdd/AxisWsddException.h
Index: AxisWsddException.h
===================================================================
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* @author Damitha Kumarage (damitha@opensource.lk, damitha@jkcsworld.com)
*
*/
#ifndef __AXISWSDDEXCEPTION_H_OF_AXIS_INCLUDED_
#define __AXISWSDDEXCEPTION_H_OF_AXIS_INCLUDED_
#include <string>
#include <exception>
#include <axis/server/AxisException.h>
using namespace std;
class AxisWsddException :public AxisException
{
public:
AxisWsddException();
AxisWsddException(int exceptionCode);
AxisWsddException(exception* e);
AxisWsddException(exception* e, int exceptionCode);
virtual ~AxisWsddException() throw();
};
#endif
1.1 ws-axis/c/src/wsdd/AxisWsddException.cpp
Index: AxisWsddException.cpp
===================================================================
/* -*- C++ -*- */
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* @author Damitha Kumarage (damitha@opensource.lk, damitha@jkcsworld.com)
*
*/
#include <axis/server/AxisWsddException.h>
#include <exception>
using namespace std;
/**
* Default when no parameter passed. When thrown with no parameter
* more general AXISC_WSDD_EXCEPTION is assumed.
*/
AxisWsddException::AxisWsddException()
{
processException(AXISC_WSDD_EXCEPTION);
}
AxisWsddException::AxisWsddException (int iExceptionCode)
{
m_iExceptionCode = iExceptionCode;
processException (iExceptionCode);
}
AxisWsddException::AxisWsddException (exception* e)
{
processException (e);
}
AxisWsddException::AxisWsddException (exception* e, int iExceptionCode)
{
processException (e, iExceptionCode);
}
AxisWsddException::~AxisWsddException() throw ()
{
}