Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.InternalErrorException


        // set _declaredType to a clone of the argument since the argument
        // may be a structured type and may change later.
        try {
            _declaredType = (Type) type.clone();
        } catch (CloneNotSupportedException cnse) {
            throw new InternalErrorException("Variable.setTypeEquals: "
                    + "The specified type cannot be cloned.");
        }

        // set _varType. It is _token.getType() if _token is not null, or
        // _declaredType if _token is null.
View Full Code Here


            Type declaredType;

            try {
                declaredType = (Type) _declaredType.clone();
            } catch (CloneNotSupportedException cnse) {
                throw new InternalErrorException("Variable._setToken: "
                        + "Cannot clone the declared type of this Variable.");
            }

            if (declaredType instanceof StructuredType) {
                ((StructuredType) declaredType).initialize(BaseType.UNKNOWN);
View Full Code Here

        if (_varType instanceof StructuredType) {
            try {
                oldVarType = (Type) ((StructuredType) _varType).clone();
            } catch (CloneNotSupportedException ex2) {
                throw new InternalErrorException(
                        "Variable._setTokenAndNotify: "
                                + " Cannot clone _varType" + ex2.getMessage());
            }
        }
View Full Code Here

        ElementsToArray newObject = (ElementsToArray) super.clone(workspace);
        try {
            newObject.output.setTypeAtLeast(ArrayType.arrayOf(newObject.input));
        } catch (IllegalActionException e) {
            // Should have been caught before.
            throw new InternalErrorException(e);
        }
        return newObject;
    }
View Full Code Here

            _opaque = false;
            _workspace.incrVersion();
        } catch (NameDuplicationException ex) {
            // Should never happen.
            throw new InternalErrorException("Duplicated name when "
                    + "constructing the subsystem" + ex.getMessage());
        } finally {
            _workspace.doneWriting();
        }
View Full Code Here

            _opaque = false;
            _workspace.incrVersion();
        } catch (NameDuplicationException ex) {
            // Should never happen.
            throw new InternalErrorException("Duplicated name when "
                    + "constructing the subsystem" + ex.getMessage());
        } finally {
            _workspace.doneWriting();
        }
View Full Code Here

        try {
            newObject.output.setTypeAtLeast(ArrayType
                    .elementType(newObject.input));
        } catch (IllegalActionException e) {
            // Should have been caught before.
            throw new InternalErrorException(e);
        }
        return newObject;
    }
View Full Code Here

        case _SQRT:
            result = Math.sqrt(input);
            break;

        default:
            throw new InternalErrorException(
                    "Invalid value for _function private variable. "
                            + "MathFunction actor (" + getFullName() + ")"
                            + " on function type " + _function);
        }
View Full Code Here

            javaHome = StringUtilities.getProperty("java.home");

            if ((javaHome != null) && (javaHome.length() > 0)) {
                javaHome = javaHome.replace('\\', '/');
            } else {
                throw new InternalErrorException(this, null,
                        "Could not find the " + javaHomeProperty + " and the "
                                + "java.home property. Perhaps "
                                + "$PTII/lib/ptII.properties "
                                + "is not being read properly?");
            }
        }

        File javaHomeFile = new File(javaHome);

        if (!javaHomeFile.isDirectory()) {
            throw new InternalErrorException(
                    this,
                    null,
                    "Could not find the Java "
                            + "directory that contains bin/keytool.  "
                            + "Tried looking for the '"
View Full Code Here

        _stopFireRequested = true;

        try {
            _terminateProcess();
        } catch (IllegalActionException ex) {
            throw new InternalErrorException(ex);
        }
    }
View Full Code Here

TOP

Related Classes of ptolemy.kernel.util.InternalErrorException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.