1
//////////////////////////////////////////////////////////////////////////
3
// pgScript - PostgreSQL Tools
4
// RCS-ID: $Id: pgsParameterException.cpp 7758 2009-03-26 20:49:59Z dpage $
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
6
// This software is released under the BSD Licence
8
//////////////////////////////////////////////////////////////////////////
12
#include "utils/misc.h"
13
#include "pgscript/exceptions/pgsParameterException.h"
15
pgsParameterException::pgsParameterException(const wxString & message) :
16
pgsException(), m_message(message)
21
pgsParameterException::~pgsParameterException()
26
const wxString pgsParameterException::message() const
28
wxString message(m_message);
29
message.Replace(wxT("\n"), wxT("\n") + generate_spaces(PGSOUTEXCEPTION.Length()));
30
message.Prepend(wxT(">> "));
31
message.Prepend(generate_spaces(PGSOUTEXCEPTION.Length()));
32
return wxString() << PGSOUTEXCEPTION <<
33
wxString::Format(_("Parameter Exception - Some parameters are invalid:\n%s"),