Class: Quickfix::SocketException
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__Exception->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__Exception->clientdata)->klass
- Quickfix::SocketException
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(*args, self) ⇒ Object constructor
Constructor Details
#initialize(*args, self) ⇒ Object
17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 17715
SWIGINTERN VALUE _wrap_new_SocketException(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[1];
int ii;
argc = nargs;
if (argc > 1) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 0) {
return _wrap_new_SocketException__SWIG_0(nargs, args, self);
}
if (argc == 1) {
int _v = 0;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SocketException__SWIG_1(nargs, args, self);
}
}
fail:
Ruby_Format_OverloadedError( argc, 1, "SocketException.new",
" SocketException.new()\n"
" SocketException.new(std::string const &what)\n");
return Qnil;
}
|
Class Method Details
.errorToWhat(*args) ⇒ Object
17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 17746
SWIGINTERN VALUE
_wrap_SocketException_errorToWhat(int argc, VALUE *argv, VALUE self) {
std::string result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
{
if(tryRubyException([&]() mutable
{
result = FIX::SocketException::errorToWhat();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_std_string(static_cast< std::string >(result));
return vresult;
fail:
return Qnil;
}
|