cz.cuni.amis.pogamut.sposh.exceptions
Class InvalidNameException

Package class diagram package InvalidNameException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by cz.cuni.amis.pogamut.sposh.elements.ParseException
              extended by cz.cuni.amis.pogamut.sposh.exceptions.InvalidNameException
All Implemented Interfaces:
Serializable

public class InvalidNameException
extends ParseException

Thrown when name in the lap plan is not valid (example: it includes whitespaces). Names of data nodes in the lap plan must be parsable (since we are putting them into a text file), so when user tries to pass incorrect name (e.g. starts with number, has whitespaces, braces...) XXX: How exactly are names defined? Certainly not java identifier (thx2 '-'), just regexp in the parser?

Author:
Honza
See Also:
Serialized Form

Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.sposh.elements.ParseException
currentToken, eol, expectedTokenSequences, tokenImage
 
Constructor Summary
InvalidNameException(String message)
           
 
Method Summary
static InvalidNameException create(String name)
          Create an exception about invalid name
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidNameException

public InvalidNameException(String message)
Method Detail

create

public static InvalidNameException create(String name)
Create an exception about invalid name

Parameters:
name - invalid name
Returns:
created exception


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.