Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

# Exceptions

## Classes
class | MgAllProviderConnectionsUsedException
| Thrown when the server cannot create another connection to the FDO provider. More...
class | MgApplicationException
| Base class for all exceptions representing an application error. More...
class | MgArgumentOutOfRangeException
| Thrown when the value of an argument is outside the allowable range of values as defined by the invoked method. More...
class | MgArrayTypeMismatchException
| Thrown when an attempt is made to store an element of the wrong type within an array. More...
class | MgAuthenticationFailedException
| Thrown when authentication with the MapGuide site server fails. More...
class | MgClassNotFoundException
| Thrown when attempting to create an invalid class. More...
class | MgConfigurationException
| Thrown when an error occurs in a configuration file, possibly due to invalid parameters or a missing file. More...
class | MgConnectionFailedException
| Thrown when a connection to a server cannot be established. More...
class | MgConnectionNotOpenException
| Thrown when attempting to execute a service method without a valid connection. More...
class | MgCoordinateSystemComputationFailedException
| Thrown when a coordinate system computation fails. More...
class | MgCoordinateSystemConversionFailedException
| Thrown when a coordinate system conversion fails. More...
class | MgCoordinateSystemInitializationFailedException
| The exception is thrown when the coordinate system initialization fails. More...
class | MgCoordinateSystemLoadFailedException
| The exception is thrown when the coordinate system load fails. More...
class | MgCoordinateSystemMeasureFailedException
| Thrown when a coordinate system measurement fails. More...
class | MgCoordinateSystemTransformFailedException
| Thrown when a coordinate system transform fails. More...
class | MgDateTimeException
| Thrown when an error occurs in a date/time routine. More...
class | MgDbException
| Thrown when Berkeley DB encounters an error. More...
class | MgDbXmlException
| Thrown when Berkeley DB XML encounters an error. More...
class | MgDecryptionException
| Thrown when a decryption error occurs. More...
class | MgDirectoryNotFoundException
| Thrown when a directory cannot be found. More...
class | MgDivideByZeroException
| Thrown when there is an attempt to divide an integral or decimal value by zero. More...
class | MgDomainException
| Thrown when a value is used outside of its domain of definition. More...
class | MgDuplicateDirectoryException
| Thrown when attempting to create a directory that already exists. More...
class | MgDuplicateFileException
| Thrown when attempting to create a file that already exists. More...
class | MgDuplicateGroupException
| Thrown when attempting to add a user group that already exists. More...
class | MgDuplicateNameException
| Thrown when a duplicate object name is encountered during an add/insert operation in a collection. More...
class | MgDuplicateObjectException
| Thrown when a duplicate object is found. More...
class | MgDuplicateParameterException
| Thrown when a duplicate parameter is found. More...
class | MgDuplicateRepositoryException
| Thrown when a duplicate repository name is found during a create or update operation. More...
class | MgDuplicateResourceDataException
| Thrown when duplicate resource data is found during a set operation. More...
class | MgDuplicateResourceException
| Thrown when a duplicate resource name is found during an add or update operation. More...
class | MgDuplicateRoleException
| Thrown when a duplicate role is found. More...
class | MgDuplicateServerException
| Thrown when a duplicate server is found. More...
class | MgDuplicateSessionException
| Thrown when a duplicate session is found. More...
class | MgDuplicateUserException
| Thrown when attempting to add a user ID that already exists. More...
class | MgDwfException
| Wrapper for DWF toolkit exceptions. More...
class | MgDwfSectionNotFoundException
| Thrown when a DWF section is not found. More...
class | MgDwfSectionResourceNotFoundException
| Thrown when a DWF section resource is not found. More...
class | MgEmptyFeatureSetException
| Thrown when an empty feature set is found. More...
class | MgEncryptionException
| Thrown when an encryption error is encountered. More...
class | MgEndOfStreamException
| Thrown when attempting to read past the end of a stream. More...
class | MgEvaluationExpiredException
| Thrown when an evaluation has expired. More...
class | MgFdoException
| Thrown when FDO encounters an error. More...
class | MgFeatureServiceException
| Thrown when FeatureService encounters a problem. More...
class | MgFileIoException
| Thrown when a file I/O error occurs. More...
class | MgFileNotFoundException
| Thrown when attempting to access a file that cannot be found. More...
class | MgGeometryException
| Thrown when an error occurs calculating geometry. More...
class | MgGroupNotFoundException
| Thrown when a specified group cannot be found. More...
class | MgIndexOutOfRangeException
| Thrown when attempting to access an element of an array with an index that is outside the bounds of the array. More...
class | MgInvalidArgumentException
| Thrown when a method is called with an invalid argument. More...
class | MgInvalidCastException
| Thrown when attempting an invalid type cast or explicit conversion. More...
class | MgInvalidCoordinateSystemException
| Thrown when the Coordinate System API encounters a problem. More...
class | MgInvalidCoordinateSystemTypeException
| Thrown when the coordinate system type is invalid. More...
class | MgInvalidCoordinateSystemUnitsException
| Thrown when the coordinate system units are invalid. More...
class | MgInvalidDwfPackageException
| Thrown when a DWF package is not valid. More...
class | MgInvalidDwfSectionException
| Thrown when an invalid section in a DWF is found. More...
class | MgInvalidFeatureSourceException
| Thrown when FeatureService encounters a problem. More...
class | MgInvalidIpAddressException
| Thrown when an IP address is invalid. More...
class | MgInvalidLayerDefinitionException
| Thrown when a layer definition resource is invalid. More...
class | MgInvalidLicenseException
| Thrown when an invalid license is detected. More...
class | MgInvalidLogEntryException
| Thrown when a log entry does not correspond with the expected format. More...
class | MgInvalidMapDefinitionException
| Thrown when a map definition resource is invalid. More...
class | MgInvalidMimeTypeException
| Thrown when an invalid mime type is detected. More...
class | MgInvalidOperationException
| Thrown when a method call is invalid for the object's current state. More...
class | MgInvalidOperationVersionException
| Thrown when a version is invalid for the given operation. More...
class | MgInvalidPasswordException
| Thrown when a password is rejected because it does not match its corresponding user credentials or it is invalid for some other reason. More...
class | MgInvalidPrintLayoutFontSizeUnitsException
| Thrown when the font size units in a PrintLayout resource document are not valid. More...
class | MgInvalidPrintLayoutPositionUnitsException
| Thrown when the position units in a PrintLayout resource document are not valid. More...
class | MgInvalidPrintLayoutSizeUnitsException
| Thrown when the size units in a PrintLayout resource document are not valid. More...
class | MgInvalidPropertyTypeException
| Thrown when an invalid property type is used. More...
class | MgInvalidRepositoryNameException
| Thrown when a repository name is invalid. More...
class | MgInvalidRepositoryTypeException
| Thrown when a repository type is invalid. More...
class | MgInvalidResourceDataNameException
| Thrown when a resource data name is invalid. More...
class | MgInvalidResourceDataTypeException
| Thrown when a resource data type is invalid. More...
class | MgInvalidResourceNameException
| Thrown when a resource name is invalid. More...
class | MgInvalidResourcePathException
| Thrown when a resource path is invalid. More...
class | MgInvalidResourcePreProcessingTypeException
| Thrown when a resource pre-processing type is invalid. More...
class | MgInvalidResourceTypeException
| Thrown when a resource type is invalid. More...
class | MgInvalidSerialNumberException
| Thrown when an evaluation has expired. More...
class | MgInvalidServerNameException
| Thrown when a server name is invalid. More...
class | MgInvalidStreamHeaderException
| Thrown when a stream header is invalid. More...
class | MgInvalidSymbolDefinitionException
| Thrown when a symbol definition resource is invalid. More...
class | MgIoException
| Thrown when an I/O error occurs. More...
class | MgLayerNotFoundException
| Thrown when a requested layer cannot be found or does not exist. More...
class | MgLengthException
| Thrown when a length of some item does not match the expected length. More...
class | MgLicenseException
| Thrown when MapGuide has an invalid license. More...
class | MgLicenseExpiredException
| Thrown when a license has expired. More...
class | MgLogicException
| Thrown to report errors presumably detectable before the program executes, such as violations of logical preconditions. More...
class | MgLogOpenFailedException
| Thrown when a log file could not be opened. More...
class | MgNotFiniteNumberException
| Thrown when a floating-point value is positive infinity, negative infinity, or Not-a-Number (NaN). More...
class | MgNotImplementedException
| Thrown when an operation that has not been implemented yet is invoked. More...
class | MgNullArgumentException
| Thrown when a null argument is passed to a method that expects a non-null value. More...
class | MgNullPropertyValueException
| Thrown when a property value is null. More...
class | MgNullReferenceException
| Thrown when there is an attempt to dereference a null object reference. More...
class | MgObjectNotFoundException
| Thrown when attempting to access an object that cannot be found. More...
class | MgOperationProcessingException
| Thrown when the server encounters a problem that prevents the processing of an operation. More...
class | MgOutOfMemoryException
| Thrown when required memory cannot be allocated. More...
class | MgOutOfRangeException
| Thrown when a parameter value passed to a method is not in the valid range specified by its documentation. More...
class | MgOverflowException
| Thrown when an arithmetic, casting, or conversion operation in a checked context results in an overflow. More...
class | MgPathTooLongException
| Thrown when a pathname is longer than the system-defined maximum length. More...
class | MgPermissionDeniedException
| Thrown when the system denies access because the user does not have read and/or write permission on a resource. More...
class | MgPlatformNotSupportedException
| Thrown when a feature does not run on a particular platform. More...
class | MgPortNotAvailableException
| Thrown when the server is not online. More...
class | MgPrintToScaleModeNotSelectedException
| Thrown when attempting to retrieve the plot scale, but the PlotMode_PrintToScale mode is not selected. More...
class | MgRasterTransformationNotSupportedException
| Thrown when a raster image from a layer is using a different coordinate system than the map. More...
class | MgRepositoryCreationFailedException
| Thrown when creation of a repository fails. More...
class | MgRepositoryNotFoundException
| Thrown when a requested repository is not found. More...
class | MgRepositoryNotOpenException
| Thrown when a requested repository is not open. More...
class | MgRepositoryOpenFailedException
| Thrown when a repository database cannot be opened. More...
class | MgResourceBusyException
| Thrown when a requested resource is busy. More...
class | MgResourceDataNotFoundException
| Thrown when requested resource data is not found. More...
class | MgResourceNotFoundException
| Thrown when a requested resource is not found. More...
class | MgResourcesException
| Thrown when an error occurs with the resources. More...
class | MgResourcesLoadFailedException
| Thrown when an error occurs loading resources. More...
class | MgResourceTagNotFoundException
| Thrown when a resource tag is not found. More...
class | MgRoleNotFoundException
| Thrown when a specified role cannot be found. More...
class | MgRuntimeException
| Thrown when an internal runtime error occurs. More...
class | MgServerNotFoundException
| Thrown when a server cannot be found. More...
class | MgServerNotOnlineException
| Thrown when a server is not online. More...
class | MgServiceNotAvailableException
| Thrown when an invoked service is not available yet. More...
class | MgServiceNotSupportedException
| Thrown when an invoked service is not supported. More...
class | MgSessionExpiredException
| Thrown when a session has expired. More...
class | MgSessionNotFoundException
| Thrown when a session could not be found. More...
class | MgStreamIoException
| Thrown when low-level stream I/O problems occur during communication between server and web-tier. More...
class | MgStylizeLayerFailedException
| Thrown when a stylize layer fails. More...
class | MgSystemException
| Base class for all exceptions representing a system error. More...
class | MgTemporaryFileNotAvailableException
| Thrown when a temporary file is not available. More...
class | MgThirdPartyException
| Base class for third party exceptions. More...
class | MgUnauthorizedAccessException
| Thrown when the system denies access because of an I/O error or a specific type of security error. More...
class | MgUnclassifiedException
| Thrown when the server or web-tier does not know the cause of the actual problem. More...
class | MgUnderflowException
| Thrown when an arithmetic underflow occurs. More...
class | MgUnsupportedProviderThreadModelException
| Thrown when the server does not support the FDO provider thread model. More...
class | MgUriFormatException
| Thrown when an invalid Uniform Resource Identifier (URI) is detected. More...
class | MgUserNotFoundException
| Thrown when a user is not found. More...
class | MgXmlException
| Thrown when an error occurs while processing XML. More...
class | MgXmlParserException
| Wrapper for exceptions thrown from the Xerces XML parser. More...

## Detailed Description

This section lists all the exceptions that can be generated.

Comments or suggestions? Send us feedback.