Library | Package Java Toolkit

Class XToolkitError

package com.ptc.pfc.pfcExceptions;

public class XToolkitError
  extends com.ptc.pfc.pfcExceptions.XInAMethod



Description

Base class to all the XToolkitErrors classes that correspond to enum ProErrors (ProToolkitErrors.h).
Direct Known Subclasses:
XToolkitGeneralError, XToolkitBadInputs, XToolkitUserAbort, XToolkitNotFound, XToolkitFound, XToolkitLineTooLong, XToolkitContinue, XToolkitBadContext, XToolkitNotImplemented, XToolkitOutOfMemory, XToolkitCommError, XToolkitNoChange, XToolkitSuppressedParents, XToolkitPickAbove, XToolkitInvalidDir, XToolkitInvalidFile, XToolkitCantWrite, XToolkitInvalidType, XToolkitInvalidPtr, XToolkitUnavailableSection, XToolkitInvalidMatrix, XToolkitInvalidName, XToolkitNotExist, XToolkitCantOpen, XToolkitAbort, XToolkitNotValid, XToolkitInvalidItem, XToolkitMsgNotFound, XToolkitMsgNoTrans, XToolkitMsgFmtError, XToolkitMsgUserQuit, XToolkitMsgTooLong, XToolkitCantAccess, XToolkitObsoleteFunc, XToolkitNoCoordSystem, XToolkitAmbiguous, XToolkitDeadLock, XToolkitBusy, XToolkitInUse, XToolkitNoLicense, XToolkitBsplUnsuitableDegree, XToolkitBsplNonStdEndKnots, XToolkitBsplMultiInnerKnots, XToolkitBadSrfCrv, XToolkitEmpty, XToolkitBadDimAttach, XToolkitNotDisplayed, XToolkitCantModify, XToolkitCheckoutConflict, XToolkitCreateViewBadSheet, XToolkitCreateViewBadModel, XToolkitCreateViewBadParent, XToolkitCreateViewBadType, XToolkitCreateViewBadExplode, XToolkitUnattachedFeats, XToolkitRegenerateAgain, XToolkitDrawingCreateErrors, XToolkitUnsupported, XToolkitNoPermission, XToolkitAuthenticationFailure, XToolkitAppNoLicense, XToolkitAppExcessCallbacks, XToolkitAppStartupFailed, XToolkitAppInitializationFailed, XToolkitAppVersionMismatch, XToolkitAppCommunicationFailure, XToolkitAppNewVersion, XToolkitNeedsUnlock, XToolkitUnrecognizedErrorCode, XExternalDataError, XToolkitAppBadDataPath, XToolkitAppBadEncoding, XToolkitAppCreoBarred, XToolkitAppTooOld, XToolkitCheckLastError, XToolkitCheckOmitted, XToolkitIncomplete, XToolkitMaxLimitReached, XToolkitOutOfRange, XToolkitOutdated, XToolkitIncompleteTessellation, XToolkitMultibodyUnsupported



Method Summary
intGetErrorCode ()
    Reterns an error code (integer value of the enumerated type ProError from Creo Parametric TOOLKIT).
StringGetToolkitFunctionName ()
    Get method for attribute "ToolkitFunctionName"
    The name of the Creo Parametric TOOLKIT function that caused the exception to be thrown

Methods Inherited from Class com.ptc.pfc.pfcExceptions.XPFC
GetMessage

Methods Inherited from Class com.ptc.pfc.pfcExceptions.XInAMethod
GetMethodName

Method Detail

GetToolkitFunctionName

StringGetToolkitFunctionName ()


    The name of the Creo Parametric TOOLKIT function that caused the exception to be thrown



GetErrorCode

intGetErrorCode ()


    Reterns an error code (integer value of the enumerated type ProError from Creo Parametric TOOLKIT).
Returns:
Integer value of one of the static instances of ProErrors (e.g. PRO_TK_GENERAL_ERROR = -1).