예제 #1
0
const char* CInvalidChoiceSelection::GetErrCodeString(void) const
{
    switch ( GetErrCode() ) {
    case eFail:  return "eFail";
    default:     return CException::GetErrCodeString();
    }
}
예제 #2
0
 /// Translate from the error code value to its string representation
 virtual const char* GetErrCodeString(void) const {
     switch ( GetErrCode() ) {
         case eIndexInitError: return "eIndexInitError";
         case eDBMismatch: return "inconsistent database";
         default: return CException::GetErrCodeString();
     }
 }
예제 #3
0
const char* CVariantException::GetErrCodeString(void) const
{
    switch (GetErrCode()) {
    case eVariant:    return "eVariant";
    default:       return CException::GetErrCodeString();
    }
}
예제 #4
0
//----------------------------------------------------------------------------
const char * CSeqMasker::CSeqMaskerException::GetErrCodeString() const
{
    switch( GetErrCode() )
    {
    case eLstatStreamIpenFail:

        return "can not open input stream";

    case eLstatSyntax:

        return "syntax error";

    case eLstatParam:

        return  "the following parameters could not be determined"
                " from the unit frequency database or command line: ";

    case eScoreAllocFail:

        return "score function object allocation failed";

    case eScoreP3AllocFail:

        return "merge pass score function object allocation failed";

    default: 

        return CException::GetErrCodeString();
    }
}
	virtual std::string GetErrCodeString() const
	{	
		switch (GetErrCode()) {
			case eKeyNotFound: return "The key was not found in any handler: " + m_extraInfo;
			default:	 return CAnyPropertyException::GetErrCodeString();
		}
	}
예제 #6
0
const char* CException::GetErrCodeString(void) const
{
    switch (GetErrCode()) {
    case eUnknown: return "eUnknown";
    default:       return "eInvalid";
    }
}
예제 #7
0
 virtual const char* GetErrCodeString(void) const
 {
     switch (GetErrCode()) {
         case eBadResidues:    return "eBadResidues";
         default:              return CException::GetErrCodeString();
     }
 }
예제 #8
0
 virtual const char* GetErrCodeString() const
 {
     switch (GetErrCode()) {
     case eBlobTooOld:               return "eBlobTooOld";
     default:                        return CException::GetErrCodeString();
     }
 }
//------------------------------------------------------------------------------
const char * CSeqMaskerOstatOpt::Exception::GetErrCodeString() const
{
    switch( GetErrCode() )
    {
        case eMemory: return "insufficient memory";
        default:      return CException::GetErrCodeString();
    }
}
예제 #10
0
const char* CBDB_ErrnoException::GetErrCodeString(void) const
{
    switch ( GetErrCode() ) {
    case eSystem:       return "eSystem";
    case eBerkeleyDB:   return "eBerkeleyDB";
    default:            return  CException::GetErrCodeString();
    }
}
예제 #11
0
 virtual const char* GetErrCodeString(void) const
 {
     switch(GetErrCode())    {        
     case eInvalidSeqAnnot: return "eInvalidSeqAnnot";
     case eImageRenderError: return "eImageRenderError";        
     default:    return CException::GetErrCodeString();
     };
 }
예제 #12
0
const char* CConnException::GetErrCodeString(void) const
{
    switch (GetErrCode()) {
    case eConn:  return "eConn";
    default:     break;
    }
    return CException::GetErrCodeString();
}
예제 #13
0
STDMETHODIMP CComBus::Start(void)
{
	// TODO: Add your implementation code here
	m_ErrCode = 0;
	if( !OpenPort( (LPTSTR)(m_port->m_str), m_baudrate ) )
	{
		m_ErrCode = GetErrCode();
		return E_FAIL;
	}
	if( !CreateThread() )
	{
		m_ErrCode = GetErrCode();
		return E_FAIL;
	}
	::Sleep(1000);
	return S_OK;
}
예제 #14
0
const char* CRequestContextException::GetErrCodeString(void) const
{
    switch (GetErrCode()) {
    case eBadSession: return "eBadSession";
    case eBadHit:     return "eBadHit";
    default:          return CException::GetErrCodeString();
    }
}
//------------------------------------------------------------------------------
const char * 
CWinMaskCountsConverter::Exception::GetErrCodeString() const
{
    switch( GetErrCode() ) {
        case eBadOption: return "argument error";
        default: return CException::GetErrCodeString();
    }
}
예제 #16
0
const char* CCompoundIDException::GetErrCodeString() const
{
    switch (GetErrCode()) {
    case eInvalidType:
        return "eInvalidType";
    default:
        return CException::GetErrCodeString();
    }
}
예제 #17
0
 virtual const char* GetErrCodeString(void) const {
     switch (GetErrCode()) {
     case eInvalid : return "eInvalid";
     case eIndexOutOfBounds : return "eIndexOutOfBounds";
     case eInvalidResidue : return "eInvalidResidue";
     case eNoResidueInfo : return "eNoResidueInfo";
     }
     return "UnknownError";
 }
예제 #18
0
 virtual const char * GetErrCodeString(void) const
 {
     switch (GetErrCode()) {
         case eNumberOfFieldsMismatch:
             return "eNumberOfFieldsMismatch";
         default:
             return CException::GetErrCodeString();
     }
 }
예제 #19
0
 /// Get a message describing the situation leading to the throw.
 virtual const char* GetErrCodeString() const
 {
     switch ( GetErrCode() ) {
     case eConfigErr: return "eConfigErr";
     case eMemErr:    return "eMemErr";
     case eInternal:  return "eInternal";
     default:         return CException::GetErrCodeString();
     }
 }
	virtual std::string GetErrCodeString() const
	{
		std::string errorString;
		switch (GetErrCode()) {
			case eEmptyKey: errorString = "The key provided was empty";
			case eNoReadHandler: errorString = "No handler was installed to read this type";
			case eNoWriteHandler: errorString = "No handler was installed to write this type";
			case eBadReadType: errorString = "A handler found a type it couldn't write";
			case eBadWriteType: errorString = "A handler found a type it couldn't write";
			case eFileOpenFailed: errorString = "A file could not be opened";
			case eNoGet: errorString = "This handler does not implement Get";
			case eNoSet: errorString = "This handler does not implement Set";
			case ePutenvFailed: errorString = "Putenv failed.";
			default: errorString = "Unknown property exception with error code "
								+ std::to_string(GetErrCode());
			return errorString + ": " + m_extraInfo;
		}	
	}
예제 #21
0
 virtual const char* GetErrCodeString(void) const {
     switch ( GetErrCode() ) {
     case eInternal:
         return "eInternal";
     case eGeneral:
         return "eGeneral";
     default:
         return CException::GetErrCodeString();
     }
 }
예제 #22
0
const char* CParamException::GetErrCodeString(void) const
{
    switch (GetErrCode()) {
    case eParserError:   return "eParserError";
    case eBadValue:      return "eBadValue";
    case eNoThreadValue: return "eNoThreadValue";
    case eRecursion:     return "eRecursion";
    default:             return CException::GetErrCodeString();
    }
}
예제 #23
0
 virtual const char* GetErrCodeString() const
     {
         switch (GetErrCode()) {
             case eInvalidKey:             return "eInvalidKey";
             case eAsnObjectNotMatch:      return "eAsnObjectNotMatch";
             case eUnsupportedSerialFmt:   return "eUnsupportedSerialFmt";
             case eUnsupportedCompression: return "eUnsupportedCompression";
             default:                      return CException::GetErrCodeString();
         }
     }
예제 #24
0
BEGIN_NCBI_SCOPE

//------------------------------------------------------------------------------
const char * CSeqMaskerOstat::CSeqMaskerOstatException::GetErrCodeString() const
{
    switch( GetErrCode() )
    {
        case eBadState:     return "bad state";
        default:            return CException::GetErrCodeString();
    }
}
예제 #25
0
const char* CUnassignedMember::GetErrCodeString(void) const
{
#if 0
    switch ( GetErrCode() ) {
        case eGet:            return "eGet";
        case eWrite:          return "eWrite";
        case eUnknownMember:  return "eUnknownMember";
        default:              return CException::GetErrCodeString();
        }
#else
        // At least with ICC 9.0 on 64-bit Linux in Debug and MT mode
    // there is an apparent bug that causes the above "switch" based
    // variant of this function to misbehave and crash with SEGV...
    TErrCode e = GetErrCode();
    if (e == eGet)           {return "eGet";}
    if (e == eWrite)         {return "eWrite";}
    if (e == eUnknownMember) {return "eUnknownMember";}
    return CException::GetErrCodeString();
#endif
}
예제 #26
0
const char* CCoreException::GetErrCodeString(void) const
{
    switch (GetErrCode()) {
    case eCore:       return "eCore";
    case eNullPtr:    return "eNullPtr";
    case eDll:        return "eDll";
    case eDiagFilter: return "eDiagFilter";
    case eInvalidArg: return "eInvalidArg";
    default:          return CException::GetErrCodeString();
    }
}
예제 #27
0
BEGIN_NCBI_SCOPE


const char* CGetPasswordFromConsoleException::GetErrCodeString(void) const
{
    switch (GetErrCode()) {
    case eGetPassError:         return "eGetPassError";
    case eKeyboardInterrupt:    return "eKeyboardInterrupt";
    default:                    return CException::GetErrCodeString();
    }
}
예제 #28
0
inline
const char* CEditException::GetErrCodeString(void) const
{
    switch ( GetErrCode() ) {
    case eNotImplemented:
        return "eNotImplemented";
    case eInvalid:
        return "eInvalid";
    default:
        return CException::GetErrCodeString();
    }
}
예제 #29
0
const char* CInterProcessLockException::GetErrCodeString(void) const
{
    switch (GetErrCode()) {
        case eLockTimeout:   return "eLockTimeout";
        case eCreateError:   return "eCreateError";
        case eLockError:     return "eLockError";
        case eUnlockError:   return "eUnlockError";
        case eMultipleLocks: return "eMultipleLocks";
        case eNotLocked:     return "eNotLocked";
        default:             return CException::GetErrCodeString();
    }
}
예제 #30
0
const char* CIO_Exception::GetErrCodeString(void) const
{
    switch (GetErrCode()) {
    case eTimeout:       return "eIO_Timeout";
    case eClosed:        return "eIO_Closed";
    case eInterrupt:     return "eIO_Interrupt";
    case eInvalidArg:    return "eIO_InvalidArg";
    case eNotSupported:  return "eIO_NotSupported";
    case eUnknown:       return "eIO_Unknown";
    default:             break;
    }
    return CException::GetErrCodeString();
}