Code example for ParseException

0
		String nextStr = logicalPartition.substring(1);
		String[] parts = nextStr.split("_");
		 
		if (parts.length != 2)
		{ 
			throw new ParseException("logical Partition does not have numbers of format p[num1]_[num2]" + logicalPartition, 0);
		} 
		int p = Integer.parseInt(parts[0]);
		int s = Integer.parseInt(parts[1]); 
		 
		_logicalPartition = logicalPartition;
		_partitionNum = p;
		_schemaVersion = s;			
	} 
	 
	LogicalPartitionRepresentation(int partitionNum, int schemaVersion)
	{ 
		_partitionNum = partitionNum;
		_schemaVersion = schemaVersion;
		_logicalPartition = "p" + Integer.toString(partitionNum) + "_" + Integer.toString(schemaVersion);
	}