<?php

	namespace Mocha\Oms;

	use Phast\Enumeration;
	
	class OmsMetadataExceptionSeverity extends Enumeration
	{
		const None = 0;
		const Information = 1;
		const Warning = 2;
		const Error = 3;
	}

	class OmsMetadataException
	{
		public $Message;
		public $Parameters;
		public $CallStack;
		public $Severity;

		public function __construct(string $message, array $parameters = null, array $callStack = null, $severity = OmsMetadataExceptionSeverity::Error)
		{
			$this->Message = $message;
			$this->Parameters = $parameters;
			$this->CallStack = $callStack;
			$this->Severity = $severity;
		}

	}
?>