ModelSEED/ModelSEED — pull request #56 by devoid (2012-09-12 17:09:13+00:00)
Title: Proper error on bad attribute access in ms list

- Fixes issue #50: Error message when using with option
- Now passing an invalid attribute to ms list returns
a CLI error including a list of valid attributes; e.g.

$ ms list biochemistry/sdevoid/web/compounds -w idd
Invalid attribute 'idd' for ModelSEED::MS::Compound, available attributes:
isCofactor
defaultCharge
ancestor_uuid
abstractCompound
deltaG
uuid
mapped_uuid
pks
formula
mass
modDate
id
unchargedFormula
abstractCompound_uuid
searchnames
deltaGErr
compoundCues
parent
name
cksum
structures
comprisedOfCompounds
comprisedOfCompound_uuids
abbreviation

- Implement new exception 'ModelSEED::Exception::InvalidAttribute'
where the throw arguments are:

ModelSEED::Exception::InvalidAttribute->throw(
object => $object,
invalid_attribute => $attr,
);

Where `$object` is a `ModelSEED::MS` object and `$attr` is a string.