Exemplo n.º 1
0
        // Token: 0x060018F0 RID: 6384 RVA: 0x00056B30 File Offset: 0x00054D30
        public static void ThrowInvalidRequestException(string error, string errorMessage)
        {
            OwaInvalidRequestException ex = new OwaInvalidRequestException(errorMessage);

            GetLinkPreview.SetErrorData(ex, error);
            throw ex;
        }
Exemplo n.º 2
0
        // Token: 0x060018EF RID: 6383 RVA: 0x00056AFC File Offset: 0x00054CFC
        public static void ThrowInvalidRequestException(HttpResponseMessage responseMessage)
        {
            string error                  = responseMessage.StatusCode.ToString();
            string reasonPhrase           = responseMessage.ReasonPhrase;
            OwaInvalidRequestException ex = new OwaInvalidRequestException(reasonPhrase);

            GetLinkPreview.SetErrorData(ex, error);
            throw ex;
        }