Class: Quark::MdkProtocol::ProtocolError

Inherits:
DatawireQuarkCore::QuarkObject show all
Extended by:
DatawireQuarkCore::Static
Defined in:
lib/mdk_protocol.rb

Overview

A value class for sending error informationto a remote peer.

Constant Summary

Constants included from DatawireQuarkCore::Static

DatawireQuarkCore::Static::Unassigned

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DatawireQuarkCore::Static

_lazy_statics, static, unlazy_statics

Methods inherited from DatawireQuarkCore::QuarkObject

#to_s

Constructor Details

#initializeProtocolError

Returns a new instance of ProtocolError.



662
663
664
665
666
# File 'lib/mdk_protocol.rb', line 662

def initialize()
    self.__init_fields__

    nil
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



655
656
657
# File 'lib/mdk_protocol.rb', line 655

def code
  @code
end

#detailObject

Returns the value of attribute detail.



655
656
657
# File 'lib/mdk_protocol.rb', line 655

def detail
  @detail
end

#idObject

Returns the value of attribute id.



655
656
657
# File 'lib/mdk_protocol.rb', line 655

def id
  @id
end

#titleObject

Returns the value of attribute title.



655
656
657
# File 'lib/mdk_protocol.rb', line 655

def title
  @title
end

Instance Method Details

#__init_fields__Object



722
723
724
725
726
727
728
729
730
# File 'lib/mdk_protocol.rb', line 722

def __init_fields__()
    
    self.code = nil
    self.title = nil
    self.detail = nil
    self.id = nil

    nil
end

#_getClassObject



678
679
680
681
682
683
# File 'lib/mdk_protocol.rb', line 678

def _getClass()
    
    return "mdk_protocol.ProtocolError"

    nil
end

#_getField(name) ⇒ Object



685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
# File 'lib/mdk_protocol.rb', line 685

def _getField(name)
    
    if ((name) == ("code"))
        return (self).code
    end
    if ((name) == ("title"))
        return (self).title
    end
    if ((name) == ("detail"))
        return (self).detail
    end
    if ((name) == ("id"))
        return (self).id
    end
    return nil

    nil
end

#_setField(name, value) ⇒ Object



704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
# File 'lib/mdk_protocol.rb', line 704

def _setField(name, value)
    
    if ((name) == ("code"))
        (self).code = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("title"))
        (self).title = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("detail"))
        (self).detail = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("id"))
        (self).id = ::DatawireQuarkCore.cast(value) { ::String }
    end

    nil
end

#toStringObject



671
672
673
674
675
676
# File 'lib/mdk_protocol.rb', line 671

def toString()
    
    return ((((((("ID:") + (@id)) + (" code:")) + (@code)) + (" ")) + (@title)) + ("\n")) + (@detail)

    nil
end