Browse our Products

Aspose.OMR for .NET 25.5.0 - Release Notes

What was changed

KeySummaryCategory
OMRNET‑1154Added new API entries for OMR exceptionsNew feature

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OMR for .NET 25.5.0 that may affect the code of existing applications.

Added public APIs:

The following public APIs have been added to Aspose.OMR for .NET 25.5.0:

Aspose.OMR.Exceptions.InvalidConfigurationException

An exception thrown when Aspose OMR engine encounters unrecoverable error in provided configuration. e.g. empty .omr file, incorrect values in template generation config.

Derived from Aspose.OMR.OMRException.

Aspose.OMR.Exceptions.RuntimeExceptionOMR

An exception thrown when Aspose OMR engine encounters unrecoverable error that is not documented at the moment.

Derived from Aspose.OMR.OMRException.

Updated public APIs:

No changes.

Removed public APIs:

No changes.

Usage examples

See the examples below to learn more about the changes introduced in this release:

Catching invalid configuration exception

OmrEngine engine = new OmrEngine();
string configPath = @"C:\Users\User\Desktop\template\template.json";
GlobalPageSettings settings = new GlobalPageSettings
{
	FontFamily = "Arial",
	FontStyle = FontStyle.Regular,
	FontSize = 7,
	PaperSize = PaperSize.A3,
	PageMarginLeft = 50,
};

GenerationResult res = null;
try
{
	res  = engine.Generate(configPath, settings);
}catch (Aspose.OMR.Exceptions.InvalidConfigurationException ex)
{
	//fallback action
}