polymerist.polymers.exceptions ============================== .. py:module:: polymerist.polymers.exceptions .. autoapi-nested-parse:: Custom Exceptions specific to Polymers and related objects Exceptions ---------- .. autoapisummary:: polymerist.polymers.exceptions.InsufficientChainLength polymerist.polymers.exceptions.ExcessiveChainLength polymerist.polymers.exceptions.EndGroupDominatedChain polymerist.polymers.exceptions.MorphologyError polymerist.polymers.exceptions.EmptyBlockSequence polymerist.polymers.exceptions.PartialBlockSequence polymerist.polymers.exceptions.AlreadySolvated polymerist.polymers.exceptions.ChargeMismatch polymerist.polymers.exceptions.MissingStructureData polymerist.polymers.exceptions.MissingMonomerData Module Contents --------------- .. py:exception:: InsufficientChainLength Bases: :py:obj:`Exception` Raised when the polymer molecule being built is too short .. py:exception:: ExcessiveChainLength Bases: :py:obj:`Exception` Raised when the polymer molecule being built is too long .. py:exception:: EndGroupDominatedChain Bases: :py:obj:`Exception` Raised to indicate there are more end groups present in a chain than are monomer possibly allowed .. py:exception:: MorphologyError Bases: :py:obj:`Exception` Raised when a polymer does not have the morphology (i.e. crosslinking, molecular weight, etc) an application expects .. py:exception:: EmptyBlockSequence Bases: :py:obj:`Exception` Raised when a trivial sequence of copolymer block (i.e. the empty string "") is provided when no expected .. py:exception:: PartialBlockSequence Bases: :py:obj:`Exception` Raised when an non-whole number of copolymer blocks is needed to reach a target chain length (and is not allowed) .. py:exception:: AlreadySolvated Bases: :py:obj:`Exception` Raised when attempting to add solvent to a molecule which already has solvent .. py:exception:: ChargeMismatch Bases: :py:obj:`Exception` Raised when attempting to merge two objects which disagree on their charging status .. py:exception:: MissingStructureData Bases: :py:obj:`Exception` Raised when a managed molecule has no associated structure file (e.g. PDB, SDF, etc.) .. py:exception:: MissingMonomerData Bases: :py:obj:`Exception` Raised when no monomer fragment information is found for a Polymer