Changeset 76:33c4dc6535a1 in finroc_plugins_data_ports


Ignore:
Timestamp:
21.07.2014 17:29:33 (5 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Made some common exceptions "rrlib::util::tTraceableException"s

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • api/tDeserializationScope.cpp

    r46 r76  
    7676  if (!IsDataFlowType(type)) 
    7777  { 
    78     throw std::runtime_error("Not a data flow type"); 
     78    throw rrlib::util::tTraceableException<std::runtime_error>("Not a data flow type"); 
    7979  } 
    8080  if (IsCheaplyCopiedType(type)) 
     
    9494    if (!current_scope) 
    9595    { 
    96       throw std::runtime_error("No scope created"); 
     96      throw rrlib::util::tTraceableException<std::runtime_error>("No scope created"); 
    9797    } 
    9898    if (!current_scope->buffer_source) 
     
    109109  if (!buffer_source) 
    110110  { 
    111     throw std::logic_error("This must be implemented if scope class can be created without providing buffer pool."); 
     111    throw rrlib::util::tTraceableException<std::logic_error>("This must be implemented if scope class can be created without providing buffer pool."); 
    112112  } 
    113113  return *buffer_source; 
  • tGenericPort.h

    r69 r76  
    282282    if (!IsDataFlowType(wrap.GetDataType())) 
    283283    { 
    284       throw std::runtime_error(wrap.GetDataType().GetName() + " is no data flow type and cannot be wrapped."); 
     284      throw rrlib::util::tTraceableException<std::runtime_error>(wrap.GetDataType().GetName() + " is no data flow type and cannot be wrapped."); 
    285285    } 
    286286    tGenericPort port; 
  • tInputPort.h

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

    r74 r76  
    213213    if (!(wrap.GetFlag(core::tFrameworkElement::tFlag::EMITS_DATA) && wrap.GetFlag(core::tFrameworkElement::tFlag::OUTPUT_PORT))) 
    214214    { 
    215       throw std::runtime_error("tOutputPort can only wrap output ports. Attempted to wrap port that has invalid flags."); 
     215      throw rrlib::util::tTraceableException<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.