Examples of UnknownTypeException


Examples of eu.admire.dispel.parser.exception.UnknownTypeException

        throws UnknownTypeException, TypeMismatchException
    {
        Variable var = mExecutionState.getVariables().get(text);
        if (var == null)
        {
            throw new UnknownTypeException(text);
        }
        if (!(var.getType() instanceof ProcessingElementTypeType))
        {
            throw new TypeMismatchException("ProcessingElementTypeType", var.getValue());
        }
View Full Code Here

Examples of eu.admire.dispel.parser.exception.UnknownTypeException

        throws UnknownTypeException, TypeMismatchException
    {
        Variable var = mExecutionState.getVariables().get(text);
        if (var == null)
        {
            throw new UnknownTypeException(text);
        }
        if (!(var.getType() instanceof ProcessingElementTypeType))
        {
            throw new TypeMismatchException(
                    "ProcessingElementTypeType", var.getValue());
View Full Code Here

Examples of eu.admire.dispel.parser.exception.UnknownTypeException

            throws UnknownTypeException, TypeMismatchException
    {
        Type supertype = mExecutionState.getUsedProcessingElements().getType(text);
        if (supertype == null)
        {
            throw new UnknownTypeException(text);
        }
        String qName = mExecutionState.getNamespaceManager().resolve(mName);
        Type type = TypeUtils.newSubtypeOf(qName, supertype);
        mExecutionState.getUsedProcessingElements().registerType(qName, type);
        mExecutionState.getNamespaceManager().addUsingDeclaration(qName);
View Full Code Here

Examples of eu.admire.dispel.parser.exception.UnknownTypeException

    public Type getType(String name) throws UnknownTypeException
    {
        if (!mNames.contains(name))
        {
            throw new UnknownTypeException(name);
        }
        return mTypes.get(name);
    }
View Full Code Here

Examples of eu.admire.dispel.parser.exception.UnknownTypeException

        throws UnknownTypeException, TypeMismatchException
    {
        Variable var = mExecutionState.getVariables().get(text);
        if (var == null)
        {
            throw new UnknownTypeException(text);
        }
        if (!(var.getType() instanceof ProcessingElementTypeType))
        {
            throw new TypeMismatchException("ProcessingElementTypeType", var.getValue());
        }
View Full Code Here

Examples of eu.admire.dispel.parser.exception.UnknownTypeException

        throws UnknownTypeException
    {
        Variable var = mExecutionState.getVariables().get(text);
        if (var == null)
        {
            throw new UnknownTypeException(text);
        }
        Type type = var.getType();
        mFunction.setReturnType(type);
    }
View Full Code Here

Examples of flex.messaging.io.UnknownTypeException

            case kByteArrayType:
                value = readByteArray();
                break;
            default:
                // Unknown object type tag {type}
                UnknownTypeException ex = new UnknownTypeException();
                ex.setMessage(10301, new Object[]{new Integer(type)});
                throw ex;
        }

        return value;
    }
View Full Code Here

Examples of flex.messaging.io.UnknownTypeException

                if (isDebug)
                    trace.write("UNSUPPORTED");

                //Unsupported type found in AMF stream.
                UnknownTypeException ex = new UnknownTypeException();
                ex.setMessage(10302);
                throw ex;

            case kObjectEndType:

                if (isDebug)
                    trace.write("UNEXPECTED OBJECT END");

                //Unexpected object end tag in AMF stream.
                UnknownTypeException ex1 = new UnknownTypeException();
                ex1.setMessage(10303);
                throw ex1;

            case kRecordsetType:

                if (isDebug)
                    trace.write("UNEXPECTED RECORDSET");

                //AMF Recordsets are not supported.
                UnknownTypeException ex2 = new UnknownTypeException();
                ex2.setMessage(10304);
                throw ex2;

            default:

                if (isDebug)
                    trace.write("UNKNOWN TYPE");

                UnknownTypeException ex3 = new UnknownTypeException();
                ex3.setMessage(10301, new Object[]{new Integer(type)});
                throw ex3;
        }
        return value;
    }
View Full Code Here

Examples of org.apache.isis.core.commons.exceptions.UnknownTypeException

    public static ObjectAdapter createAdapter(final Class<?> type, final Object object, final AdapterManagerSpi adapterManager, final SpecificationLoaderSpi specificationLoader) {
        final ObjectSpecification specification = specificationLoader.loadSpecification(type);
        if (specification.isNotCollection()) {
            return adapterManager.adapterFor(object);
        } else {
            throw new UnknownTypeException("not an object, is this a collection?");
        }
    }
View Full Code Here

Examples of org.apache.isis.core.commons.exceptions.UnknownTypeException

    private ObjectAdapter createAdapter(final Class<?> type, final Object object) {
        final ObjectSpecification specification = getSpecificationLookup().loadSpecification(type);
        if (specification.isNotCollection()) {
            return getAdapterManager().adapterFor(object);
        } else {
            throw new UnknownTypeException("not an object, is this a collection?");
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.