PageSourceSearch

https://dfe.eprviamineira.com.br/content/js/angular/services/showErrorService.js

js eprviamineira.com.br collected 2026-10-02 18:16:06 UTC 1,801 bytes, 63 lines download raw bytes

1(function (window, angular) {
2    'use strict';
3
4    angular
5        .module("RFPe")
6        .service("showErrorService", ShowErrorService);
7
8    ShowErrorService.$inject = [];
9
10    function ShowErrorService() {
11
12        function show(result, statusCode) {
13
14
15            // BAD REQUEST (VALIDAÇÃO)
16            if (statusCode === 400) {
17                bootbox.dialog({
18                    title: "Erro",
19                    message: result.errors[0],
20                    buttons: {
21                        main: {
22                            label: "Fechar",
23                            className: "btn-default"
24                        }
25                    }
26                });
27            }
28
29            else {
30                bootbox.dialog({
31                    title: "Erro",
32                    message: 'Ocorreu um problema na solicitação e a mesma não foi concluída.<br/><br/>Tente novamente, caso o problema persista entre em contato com a Central de Atendimento.',
33                    buttons: {
34                        main: {
35                            label: "Fechar",
36                            className: "btn-default"
37                        }
38                    }
39                });
40            }
41
42        };
43
44        function showCustom(message) {
45            bootbox.dialog({
46                title: "Erro",
47                message: message+'<br/><br/>Tente novamente, caso o problema persista entre em contato com a Central de Atendimento.',
48                buttons: {
49                    main: {
50                        label: "Fechar",
51                        className: "btn-default"
52                    }
53                }
54            });
55        }
56
57        return {
58            show: show,
59            showCustom: showCustom
60        };
61    }
62
63})(window, angular);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.