X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..56f7c4239666506c59af42885f0bf0141d21a614:/Exception.cpp?ds=inline diff --git a/Exception.cpp b/Exception.cpp index c45c367..4036dac 100644 --- a/Exception.cpp +++ b/Exception.cpp @@ -24,8 +24,11 @@ QString Exception::getDefaultMessage() { case BLOCKFILE_NOACCESS : ret = tr("Block file cannot be read"); break; case IMPLFILE_CORRUPTED : ret = tr("Implementation file is corrupted"); break; case IMPLFILE_NOACCESS : ret = tr("Implementation file cannot be read"); break; + case IMPLFILE_NOPATTERN : ret = tr("Implementation file does not contains pattern definitions"); break; case BLOCK_NULL : ret = tr("A parameter of type AbstractBlock* has been provided with NULL value."); break; case BLOCK_INVALID_TYPE : ret = tr("A parameter of type AbstractBlock* is used with an incorrect instance type."); break; + case VHDLFILE_NOACCESS : ret = tr("VHDL file cannot be read"); break; + case VHDLFILE_CORRUPTED : ret = tr("VHDL file is corrupted"); break; case IFACE_NULL : ret = tr("A parameter of type AbstractInterface* has been provided with NULL value."); break; case IFACE_INVALID_TYPE : ret = tr("A parameter of type AbstractInterface* is used with an incorrect instance type."); break; case IFACE_MULTIPLICITY_REACHED : ret = tr("Impossible to create another instance of a GraphInterface: the maximum multiplicity is reached."); break; @@ -33,6 +36,21 @@ QString Exception::getDefaultMessage() { case BLOCKITEM_INVALID_TYPE : ret = tr("A parameter of type AbstractBlockItem* is used with an incorrect instance type."); break; case WIDTHS_NOT_EQUALS : ret = tr("Two interfaces are connected but don't have the same widths."); break; case INVALID_VALUE : ret = tr("parameter value is not correct (e.g. not numeric, invalid other parameter name, ...)."); break; + case INVALID_REFBLOCK_USE : ret = tr("a reference block is used during pattern computations"); break; + case INVALID_DELTA_CP : ret = tr("delta and CP are not consistent"); break; + case EVAL_PARAM_UNKNOWN : ret = tr("a variable used in an expression is not defined as a block parameter"); break; + case EVAL_PARAM_NOVALUE : ret = tr("can't get the double value of a block parameter"); break; + case EVAL_INVALID_EXPR : ret = tr("invalid arithmetic expression (in a block parameter/pattern)"); break; + case INVALID_IFACE_PATTERN : ret = tr("the pattern of an interface is invalid (not correct grammar)"); break; + case INVALID_IFACE_PC : ret = tr("the production counter of an interface is invalid (not correct grammar)"); break; + case INVALID_IFACE_CP_LENGTH : ret = tr("the size of CP for an interface differs from others"); break; + case NO_IFACE_CP : ret = tr("an interface has no CP defined in reference block"); break; + case INVALID_IFACE_PP_LENGTH : ret = tr("the size of PP for an interface differs from others"); break; + case NO_IFACE_PP : ret = tr("an interface has no PP defined in reference block"); break; + case NO_IFACE_IP : ret = tr("an interface has no IP"); break; + case IP_AP_NOTCOMPAT : ret = tr("IP and AP not compatible"); break; + case IP_END_NULLCOL : ret = tr("IP ends with anull column (normally not possible during compat. check)"); break; + case AP_TOO_SHORT : ret = tr("AP has been badly computed, leading to a AP shorter than needed (NB: it is an abnormal case)"); break; } return ret;