Package javax.jmi.reflect

Examples of javax.jmi.reflect.InvalidNameException


      } // end loop
      return extent;
    }
    catch(IndexOutOfBoundsException ex)
    {
      throw new InvalidNameException("Bad concept name '"+conceptName
                                     +"': Can't split name in subnames.");
    }
    catch(JmiException ex)
    {
      if(i>0)
      {
        System.out.println("Can't create class '"+conceptName+"', name '"
                           +names[i]
                           +"' not found in '"+names[i-1]+"'.");
        throw new InvalidNameException("Bad concept name '"+conceptName
                                       +"': name '"+names[i]
                                       +"' not found in '"+names[i-1]+"'.");
      }
      else
      {
        System.out.println("Can't create class '"+conceptName+"', name '"
                           +names[i]
                           +"' not found in outermost package.");
        throw new InvalidNameException("Bad concept name '"+conceptName
                                       +"': name '"+names[i]
                                       +"' not found in outermost package.");
      }
    }
    catch(RuntimeException ex)
    {
      //System.out.println( "error while getting concept class '" + conceptName + "',. i=" + i );
      throw new InvalidNameException("Bad concept name '"+conceptName
                                     +"'");
    }
  }
View Full Code Here


      } // end loop
      return extent.refAssociation(names[i]);
    }
    catch(IndexOutOfBoundsException ex)
    {
      throw new InvalidNameException("Bad concept name '"+conceptName
                                     +"': Can't split name in subnames.");
    }
    catch(JmiException ex)
    {
      if(i>0)
      {

        System.out.println("Can't find class '"+conceptName+"', name '"
                           +names[i]
                           +"' not found in '"+names[i-1]+"'. (was: "
                           +ex.getMessage()+").");
        ex.printStackTrace();
        throw new InvalidNameException("Bad concept name '"+conceptName
                                       +"': name '"+names[i]
                                       +"' not found in '"+names[i-1]+"'.");
      }
      else
      {
        System.out.println("Can't find class '"+conceptName+"', name '"
                           +names[i]
                           +"' not found in outermost package.(was: "
                           +ex.getMessage()+").");
        throw new InvalidNameException("Bad concept name '"+conceptName
                                       +"': name '"+names[i]
                                       +"' not found in outermost package.");
      }
    }
    catch(RuntimeException ex)
    {
      //System.out.println( "error while getting concept class '" + conceptName + "',. i=" + i );
      throw new InvalidNameException("Bad concept name '"+conceptName
                                     +"'");
    }
  }
View Full Code Here

    }
    catch(InvalidNameException ex)
    {
      if(i>0)
      {
        throw new InvalidNameException("Can't found package '" +names[i]
                                       +"' in '"+names[i-1]+"'.");
      }
      else
      {
        System.out.println("Can't found package '" +names[i]
                                       +"' in outermost package.");
        throw new InvalidNameException("Can't found package '" +names[i]
                                       +"' in outermost package.");
      }
    }

    return extent;
View Full Code Here

TOP

Related Classes of javax.jmi.reflect.InvalidNameException

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.