mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-21 17:44:04 +08:00
Made some throw methods static.
This commit is contained in:
+3
-3
@@ -270,21 +270,21 @@ string Command::numericInfo()
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
void Command::throwInvalidUsageException(const stringstream &s) const
|
||||
void Command::throwInvalidUsageException(const stringstream &s)
|
||||
{
|
||||
throw InvalidUsageException(s);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
void Command::throwCommandException(const string &msg) const
|
||||
void Command::throwCommandException(const string &msg)
|
||||
{
|
||||
throw CommandException(msg);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
void Command::throwCommandException(const stringstream &s) const
|
||||
void Command::throwCommandException(const stringstream &s)
|
||||
{
|
||||
throw CommandException(s);
|
||||
}
|
||||
|
||||
+3
-3
@@ -132,9 +132,9 @@ class Command
|
||||
protected:
|
||||
enum {BreakAfterBytes = 16};
|
||||
|
||||
void throwInvalidUsageException(const stringstream &) const;
|
||||
void throwCommandException(const string &) const;
|
||||
void throwCommandException(const stringstream &) const;
|
||||
static void throwInvalidUsageException(const stringstream &);
|
||||
static void throwCommandException(const string &);
|
||||
static void throwCommandException(const stringstream &);
|
||||
void throwSingleSlaveRequired(unsigned int) const;
|
||||
|
||||
typedef list<ec_ioctl_slave_t> SlaveList;
|
||||
|
||||
Reference in New Issue
Block a user