Private-Out-OMEException.ps1

Function Out-OMEException
{
    <#
    .SYNOPSIS
        Get OME alert
 
    .DESCRIPTION
        Get OME Alert
         
    .PARAMETER Credential
        Specifies a user account that has permission to access to OME server.
             
    .PARAMETER Server
        Specifies the OME server you want to connect.
         
    .PARAMETER Port
        Specifies tcp port for the connection.
                         
    .PARAMETER ignoreCert
        Ignore certificate error during the connection.
             
    .PARAMETER id
        id of the OME device.
             
    .PARAMETER Severity
        Query only entries with specific severity.
         
    .EXAMPLE
 
        Get-OMEDeviceHWLogs -Server myOMEserver.example.com -port 2607 -ignoreCert -Id 49 -Severity Critical
         
    .NOTES
        Author: MK
 
    .LINK
        Get-OMEDeviceHWLogs
    #>
    

    [CmdletBinding(
    )]
    Param(
        [parameter(Mandatory=$true)]
        $Exception=""
    )
    
    Begin
    {
    }
    
    Process
    {
        Write-Verbose $Exception | fl
        Write-Warning $Exception.Exception
    }
    
    End{}
}