Changeset 74:f968afdce0c3 in finroc_plugins_data_ports


Ignore:
Timestamp:
21.07.2014 17:24:20 (5 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
13.10
Children:
75:8dce78d696df, 81:45307b1a5d82
Phase:
public
Message:

Added missing "throw"s

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tInputPort.h

    r46 r74  
    294294    if (!(wrap.GetFlag(core::tFrameworkElement::tFlag::ACCEPTS_DATA))) 
    295295    { 
    296       std::runtime_error("tInputPort can only wrap ports that accept data."); 
     296      throw std::runtime_error("tInputPort can only wrap ports that accept data."); 
    297297    } 
    298298    tInputPort port; 
  • tOutputPort.h

    r46 r74  
    213213    if (!(wrap.GetFlag(core::tFrameworkElement::tFlag::EMITS_DATA) && wrap.GetFlag(core::tFrameworkElement::tFlag::OUTPUT_PORT))) 
    214214    { 
    215       std::runtime_error("tOutputPort can only wrap output ports. Attempted to wrap port that has invalid flags."); 
     215      throw std::runtime_error("tOutputPort can only wrap output ports. Attempted to wrap port that has invalid flags."); 
    216216    } 
    217217    tOutputPort port; 
Note: See TracChangeset for help on using the changeset viewer.